[PATCH] Add readability-remove-void-arg check to clang-tidy

Gábor Horváth xazax.hun at gmail.com
Mon Mar 2 01:35:30 PST 2015


================
Comment at: clang-tidy/readability/RemoveVoidArg.cpp:73
@@ +72,3 @@
+  const LangOptions &LangOpts = Compiler.getLangOpts();
+  CPlusPlusFile_ = LangOpts.CPlusPlus || LangOpts.CPlusPlus11 ||
+                   LangOpts.CPlusPlus14 || LangOpts.CPlusPlus1z;
----------------
As far as I can remember when the code compiled in e.g.: CPlusPlus14 mode, the CPlusPlus11  and CPlusPlus  flags are also turned on. It might be enough to check CPlusPlus.

http://reviews.llvm.org/D7639

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






More information about the cfe-commits mailing list