aboutsummaryrefslogtreecommitdiff
path: root/clang/examples/analyzer-plugin
AgeCommit message (Collapse)AuthorFilesLines
2016-07-08Explicitly export symbols from the sample analyzer pluginJohn Brawn2-1/+4
This is done so that it will work when built using MSVC if LLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON. Differential Revision: http://reviews.llvm.org/D21971 llvm-svn: 274871
2016-06-09[CMake] Cleaning up CMake feature gating on 2.8.12Chris Bieneman1-1/+1
CMake 2.8.12 introduced interface libraries and some related policies. This removes the conditional block because we're now past 2.8.12. llvm-svn: 272312
2016-01-26Remove autoconf supportChris Bieneman1-20/+0
Summary: This patch is provided in preparation for removing autoconf on 1/26. The proposal to remove autoconf on 1/26 was discussed on the llvm-dev thread here: http://lists.llvm.org/pipermail/llvm-dev/2016-January/093875.html "This is the way [autoconf] ends Not with a bang but a whimper." -T.S. Eliot Reviewers: chandlerc, grosbach, bob.wilson, echristo Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D16472 llvm-svn: 258862
2015-09-16analyzer-plugin/MainCallChecker.cpp: s/generateSink/generateErrorNode/, ↵NAKAMURA Takumi1-1/+1
corresponding to r247859. llvm-svn: 247862
2015-06-23Fixing a build bot break from r240400.Aaron Ballman1-2/+3
llvm-svn: 240401
2014-07-13[CMake] Give explicit dependencies to a couple of modules, ↵NAKAMURA Takumi1-0/+9
PrintFunctionNames and SampleAnalyzerPlugin, for Win32.DLL. llvm-svn: 212906
2014-03-09[C++11] Remove the remaining uses of OwningPtr.Ahmed Charles1-1/+1
Replace OwningArrayPtr with std::unique_ptr<T[]>. llvm-svn: 203388
2014-02-21[CMake] Get rid of explicit dependencies to include/clang/*.inc and ↵NAKAMURA Takumi1-10/+0
introduce CLANG_TABLEGEN_TARGETS. This does; - clang_tablegen() adds each tblgen'd target to global property CLANG_TABLEGEN_TARGETS as list. - List of targets is added to LLVM_COMMON_DEPENDS. - all clang libraries and targets depend on generated headers. You might wonder this would be regression, but in fact, this is little loss. - Almost all of clang libraries depend on tblgen'd files and clang-tblgen. - clang-tblgen may cause short stall-out but doesn't cause unconditional rebuild. - Each library's dependencies to tblgen'd files might vary along headers' structure. It made hard to track and update *really optimal* dependencies. Each dependency to intrinsics_gen and ClangSACheckers is left as DEPENDS. llvm-svn: 201842
2014-02-13[examples] Add tablegen'd ClangCommentCommandList as a dependency for plugins.Jordan Rose1-3/+1
Also, remove library dependencies for the sample analyzer-plugin. The only library changes that would require a rebuild should be in headers, which should already implicitly be marked as dependencies. llvm-svn: 201350
2014-02-12[examples] Use loadable modules instead of shared libraries for Clang plugins.Jordan Rose1-13/+1
This avoids linking in extra copies of, say, LLVMSupport. llvm-svn: 201256
2014-02-11Expose the name of the checker producing each diagnostic message.Alexander Kornienko1-1/+1
Summary: In clang-tidy we'd like to know the name of the checker producing each diagnostic message. PathDiagnostic has BugType and Category fields, which are both arbitrary human-readable strings, but we need to know the exact name of the checker in the form that can be used in the CheckersControlList option to enable/disable the specific checker. This patch adds the CheckName field to the CheckerBase class, and sets it in the CheckerManager::registerChecker() method, which gets them from the CheckerRegistry. Checkers that implement multiple checks have to store the names of each check in the respective registerXXXChecker method. Reviewers: jordan_rose, krememek Reviewed By: jordan_rose CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2557 llvm-svn: 201186
2014-01-23[CMake] Parameterize MODULE and SHARED in add_clang_library().NAKAMURA Takumi1-3/+1
llvm-svn: 199902
2013-12-10[CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each ↵NAKAMURA Takumi1-1/+5
CMakeLists.txt. llvm-svn: 196916
2012-12-04Sort the #include lines for examples/...Chandler Carruth1-2/+2
llvm-svn: 169241
2012-11-02analyzer-plugin/MainCallChecker.cpp: Fixup corresponding to r167275.NAKAMURA Takumi1-1/+1
llvm-svn: 167278
2012-07-27libclang, examples: [CMake] Add dependencies to tblgen'd headers.NAKAMURA Takumi1-0/+9
llvm-svn: 160849
2012-06-21Remove a goofy CMake hack and use the standard CMake facilities toChandler Carruth1-4/+4
express library-level dependencies within Clang. This is no more verbose really, and plays nicer with the rest of the CMake facilities. It should also have no change in functionality. llvm-svn: 158888
2012-02-13drop more llvm:: prefixes on OwningPtr<>Dylan Noblesmith1-1/+1
More cleanup after r149798. llvm-svn: 150379
2012-02-13examples/analyzer-plugin: hook up to buildDylan Noblesmith2-2/+2
This was never being compiled at all and was bitrotting as a result. Also compile SampleAnalyzerPlugin as a module, not a library, and fix a mistake with not passing the source files to add_clang_library(). llvm-svn: 150378
2012-02-09examples/analyzer-plugin/: unbreak buildDylan Noblesmith1-2/+3
It was never updated for API changes in r149311/r149336/r149339 and r147688. llvm-svn: 150202
2011-08-17Remove EnhancedBugReport and RangedBugReport - pull all the extra ↵Anna Zaks1-1/+1
functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME. llvm-svn: 137894
2011-08-17Don't use BuiltinBug in analyzer plugin example.Jordy Rose1-1/+1
llvm-svn: 137811
2011-08-17[analyzer] Add basic support for pluggable checkers.Jordy Rose3-0/+86
llvm-svn: 137802