[PATCH] D19703: [clang-tidy] Improve misc-redundant-expression and decrease false-positive

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu May 12 06:32:23 PDT 2016


alexfh added inline comments.

================
Comment at: clang-tidy/misc/RedundantExpressionCheck.cpp:139
@@ +138,3 @@
+  const LangOptions &LO = Finder->getASTContext().getLangOpts();
+  SourceLocation Loc = Node.getExprLoc();
+  while (Loc.isMacroID()) {
----------------
Ah, found it: `llvm/ADT/StringSet.h` seems to be a better choice here.


http://reviews.llvm.org/D19703





More information about the cfe-commits mailing list