summaryrefslogtreecommitdiffstats
path: root/clang/examples/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Reland "[analyzer] Add an example plugin for checker dependency handling"Kristof Umann2019-05-161-3/+0
| | | | | | | | | | | Buildbots complained that they couldn't find the newly added plugins. The solution was to move the check-clang cmake target closer to the bottom of the file, after the new dependencies are added. Differential Revision: https://reviews.llvm.org/D59464 llvm-svn: 360891
* Revert "[analyzer] Add a test for plugins using checker dependencies"Kristof Umann2019-05-151-0/+3
| | | | | | Buildbots don't seem to find the new plugin. llvm-svn: 360805
* [analyzer] Add a test for plugins using checker dependenciesKristof Umann2019-05-151-3/+0
| | | | | | | | | | Also, I moved the existing analyzer plugin to test/ as well, in order not to give the illusion that the analyzer supports plugins -- it's capable of handling them, but does not _support_ them. Differential Revision: https://reviews.llvm.org/D59464 llvm-svn: 360799
* Make it possible for AST plugins to enable themselves by defaultJohn Brawn2016-03-151-0/+1
| | | | | | | | | | | | Currently when an AST plugin is loaded it must then be enabled by passing -plugin pluginname or -add-plugin pluginname to the -cc1 command line. This patch adds a method to PluginASTAction which allows it to declare that the action happens before, instead of, or after the main AST action, plus the relevant changes to make the plugin action happen at that time automatically. Differential Revision: http://reviews.llvm.org/D17959 llvm-svn: 263546
* [CMake] Fix installation without CLANG_BUILD_EXAMPLESJordan Rose2014-02-201-0/+1
| | | | | | | | | | | | | | | | | | When CLANG_BUILD_EXAMPLES is not on we set the EXCLUDE_FROM_ALL directory property for the examples/ directory to tell CMake not to build them by default. The AddLLVM.cmake APIs are not aware of this and try to install targets that are not built. This does not cause an install-time error because CMake excludes the directory from the default installation. However, now that installation attaches targets to the LLVMExports export set CMake-based applications that find_package(LLVM) fail because the example plugin binary is not available. Tell the AddLLVM.cmake APIs to exclude the examples from installation by setting the EXCLUDE_FROM_ALL variable they check. Patch by Brad King! llvm-svn: 201799
* [CMake] Suppress SampleAnalyzerPlugin w/o ENABLE_STATIC_ANALYZER.NAKAMURA Takumi2014-01-311-0/+2
| | | | llvm-svn: 200532
* Honour CLANG_BUILD_EXAMPLES correctly, by setting the directory'sPeter Collingbourne2012-05-031-1/+1
| | | | | | EXCLUDE_FROM_ALL property. llvm-svn: 156090
* examples/analyzer-plugin: hook up to buildDylan Noblesmith2012-02-131-0/+1
| | | | | | | | | | | 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
* Adjust CLANG_BUILD_EXAMPLES to mean whether the examples are builtPeter Collingbourne2012-01-261-0/+4
| | | | | | by default, rather than whether they may be built at all. llvm-svn: 149037
* Reverts the Tooling changes as requested by Chris.Manuel Klimek2011-06-021-1/+0
| | | | llvm-svn: 132462
* This is the next step in building the standalone tools infrastructure:Manuel Klimek2011-04-271-1/+1
| | | | | | | | | | | | | | | This patch simplifies writing of standalone Clang tools. As an example, we add clang-check, a tool that runs a syntax only frontend action over a .cc file. When you integrate this into your favorite editor, you get much faster feedback on your compilation errors, thus reducing your feedback cycle especially when writing new code. The tool depends on integration of an outstanding patch to CMake to work which allows you to always have a current compile command database in your cmake output directory when you set CMAKE_EXPORT_COMPILE_COMMANDS. llvm-svn: 130306
* Remove wpa 'example', it isn't being maintained.Daniel Dunbar2010-08-111-1/+0
| | | | llvm-svn: 110809
* Wire up Daniel's new spiffy C interpreter into the CMake build systemKovarththanan Rajaratnam2010-02-271-0/+1
| | | | llvm-svn: 97311
* Add missed CMake file for adding clang examples to CMake build.Daniel Dunbar2009-11-171-0/+3
llvm-svn: 89080
OpenPOWER on IntegriCloud