|
tfel
|
list of options that can be used to tune the behaviour of the CxxTokenizer class. More...
#include </home/runner/work/tfel/tfel/include/TFEL/Utilities/CxxTokenizerOptions.hxx>
Public Member Functions | |
| CxxTokenizerOptions () | |
| default constructor | |
| CxxTokenizerOptions (const CxxTokenizerOptions &) | |
| copy constructor | |
| CxxTokenizerOptions (CxxTokenizerOptions &&) noexcept | |
| move constructor | |
| CxxTokenizerOptions & | operator= (const CxxTokenizerOptions &) |
| standard assignement | |
| CxxTokenizerOptions & | operator= (CxxTokenizerOptions &&) noexcept |
| move assignement | |
| ~CxxTokenizerOptions () | |
| destructor | |
Public Attributes | |
| bool | bKeepCommentBoundaries = false |
| if true, keep the comment boundaries | |
| bool | shallMergeStrings = false |
| if true, successive strings are merged | |
| bool | allowStrayHashCharacter = false |
| allow stray hash character | |
| bool | treatHashCharacterAsCommentDelimiter = false |
| the hash character can start a comment, as in python, shell, etc.. | |
| bool | allowStrayBackSlash = false |
| allow stray backslash | |
| bool | treatPreprocessorDirectives = true |
| treat preprocessor directives | |
| bool | treatStrings = true |
| treat strings and characters If false, the ' and '"' are treated as indivdual tokens | |
| bool | treatNumbers = true |
| extract number | |
| bool | treatCComments = true |
| treat comments | |
| bool | treatCxxComments = true |
| treat comments | |
| bool | joinCxxTwoCharactersSeparators = true |
| bool | graveAccentAsSeparator = true |
| strings and characters | |
| bool | charAsString = false |
| bool | dotAsSeparator = true |
| treat . as a separator | |
| bool | plusAsSeparator = true |
| treat + as a separator | |
| bool | minusAsSeparator = true |
| treat - as a separator | |
| bool | addCurlyBraces = false |
| add curly braces at the beginning and at the end of the file | |
list of options that can be used to tune the behaviour of the CxxTokenizer class.
| bool tfel::utilities::CxxTokenizerOptions::charAsString = false |
if true, one consider that single quote can be used to define a string
| bool tfel::utilities::CxxTokenizerOptions::joinCxxTwoCharactersSeparators = true |
In C and C++, two separator characters can be associated to create a new separator: ->, &=. If this flag is true, these separators will be grouped in a single token.