> Question: Is it a good idea to use std::stack or would some other container 
> be better in clang-tidy?


You can try to use `std::stack<unsigned, SmallVector<unsigned, 8>>` to avoid 
heap allocation in most cases.


================
Comment at: clang-tidy/misc/MacroRepeatedSideEffectsCheck.cpp:120
@@ -99,3 +119,3 @@
 
     // If a builtin is found within the macro definition, skip next
     // parenthesis.
----------------
I guess, the main use case is __builtin_constant_p which doesn't evaluate its 
argument? Maybe specifically check for it? Or at least this needs some more 
explanation.

http://reviews.llvm.org/D10653

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to