r349816 - Fix the example checker plugin after r349812.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 20 12:35:01 PST 2018


Author: aaronballman
Date: Thu Dec 20 12:35:01 2018
New Revision: 349816

URL: http://llvm.org/viewvc/llvm-project?rev=349816&view=rev
Log:
Fix the example checker plugin after r349812.

Modified:
    cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp

Modified: cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp?rev=349816&r1=349815&r2=349816&view=diff
==============================================================================
--- cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp (original)
+++ cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp Thu Dec 20 12:35:01 2018
@@ -45,7 +45,9 @@ void MainCallChecker::checkPreStmt(const
 // Register plugin!
 extern "C"
 void clang_registerCheckers (CheckerRegistry &registry) {
-  registry.addChecker<MainCallChecker>("example.MainCallChecker", "Disallows calls to functions called main");
+  registry.addChecker<MainCallChecker>(
+      "example.MainCallChecker", "Disallows calls to functions called main",
+      "");
 }
 
 extern "C"




More information about the cfe-commits mailing list