[PATCH] [clang-tidy] Checker for inaccurate use of erase method.

Gábor Horváth xazax.hun at gmail.com
Mon Feb 9 01:12:38 PST 2015


================
Comment at: clang-tidy/misc/InaccurateEraseCheck.cpp:25
@@ +24,3 @@
+                                  .bind("InaccEndCall"))),
+            anything()));
+
----------------
It seems to work for, but I have some concerns. Is it guaranteed to work? Is there some kind of guaranteed matching/evaluating order or matcher priority? What is the idiomatic way to optionally match a construct?

http://reviews.llvm.org/D7496

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






More information about the cfe-commits mailing list