================
@@ -10,6 +10,14 @@
 #include "clang/ASTMatchers/ASTMatchFinder.h"
 
 using namespace clang::ast_matchers;
+using namespace clang::ast_matchers::internal;
+
+namespace {
+// FIXME: The matcher 'hasName(Name)' asserts that its argument 'Name' is
+// nonempty. Perhaps remove that assertion and replace 'isUnnamed()' with
+// 'hasName("")'.
----------------
void2012 wrote:

I must say that this piece is from 
https://github.com/llvm/llvm-project/blob/febf50748effc5fb381ad479cf129f1ebcdc4bec/clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp#L27

And it appears to work ok

https://github.com/llvm/llvm-project/pull/215352
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to