MCPcopy Create free account
hub / github.com/KDE/kdevelop / buildLanguageVectors

Method buildLanguageVectors

plugins/astyle/3rdparty/libastyle/ASFormatter.cpp:310–334  ·  view source on GitHub ↗

* build vectors for each programing language * depending on the file extension. */

Source from the content-addressed store, hash-verified

308 * depending on the file extension.
309 */
310void ASFormatter::buildLanguageVectors()
311{
312 if (getFileType() == formatterFileType) // don't build unless necessary
313 return;
314
315 formatterFileType = getFileType();
316
317 headers->clear();
318 nonParenHeaders->clear();
319 preDefinitionHeaders->clear();
320 preCommandHeaders->clear();
321 operators->clear();
322 assignmentOperators->clear();
323 castOperators->clear();
324 indentableMacros->clear(); // ASEnhancer
325
326 ASResource::buildHeaders(headers, getFileType());
327 ASResource::buildNonParenHeaders(nonParenHeaders, getFileType());
328 ASResource::buildPreDefinitionHeaders(preDefinitionHeaders, getFileType());
329 ASResource::buildPreCommandHeaders(preCommandHeaders, getFileType());
330 ASResource::buildOperators(operators, getFileType());
331 ASResource::buildAssignmentOperators(assignmentOperators);
332 ASResource::buildCastOperators(castOperators);
333 ASResource::buildIndentableMacros(indentableMacros); //ASEnhancer
334}
335
336/**
337 * set the variables for each predefined style.

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected