MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / buildLanguageVectors

Method buildLanguageVectors

astyle/src/ASFormatter.cpp:279–304  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

277 * depending on the file extension.
278 */
279void ASFormatter::buildLanguageVectors()
280{
281 if (getFileType() == formatterFileType) // don't build unless necessary
282 return;
283
284 formatterFileType = getFileType();
285
286 headers->clear();
287 nonParenHeaders->clear();
288 preDefinitionHeaders->clear();
289 preCommandHeaders->clear();
290 operators->clear();
291 assignmentOperators->clear();
292 castOperators->clear();
293
294 ASResource::buildHeaders(headers, getFileType());
295 ASResource::buildNonParenHeaders(nonParenHeaders, getFileType());
296 ASResource::buildPreDefinitionHeaders(preDefinitionHeaders, getFileType());
297 ASResource::buildPreCommandHeaders(preCommandHeaders, getFileType());
298 if (operators->empty())
299 ASResource::buildOperators(operators, getFileType());
300 if (assignmentOperators->empty())
301 ASResource::buildAssignmentOperators(assignmentOperators);
302 if (castOperators->empty())
303 ASResource::buildCastOperators(castOperators);
304}
305
306/**
307 * set the variables for each predefined style.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected