================ @@ -179,7 +179,25 @@ void MacroParenthesesPPCallbacks::argument(const Token &MacroNameTok, // Skip the goto argument with an arbitrary number of subsequent stars. bool FoundGoto = false; + // Tracks, for each open paren/brace/square, whether it's the argument + // list of a C11 _Generic selection -- e.g. _Generic(expr, type: value). + // An argument in the type-name position must not be parenthesized. + llvm::SmallVector<char, 8> GenericAssocStack; ---------------- zeyi2 wrote:
```suggestion llvm::SmallVector<char> GenericAssocStack; ``` https://llvm.org/doxygen/classllvm_1_1SmallVector.html#details > In the absence of a well-motivated choice for the number of inlined elements > N, it is recommended to use SmallVector<T> (that is, omitting the N). This > will choose a default number of inlined elements reasonable for allocation on > the stack (for example, trying to keep sizeof(SmallVector<T>) around 64 > bytes). https://github.com/llvm/llvm-project/pull/216237 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
