summaryrefslogtreecommitdiffstats
path: root/clang/examples
Commit message (Collapse)AuthorAgeFilesLines
* Add missing include to clang-interpreter example, to make it work on ↵Eli Friedman2011-10-061-0/+1
| | | | | | Windows. Patch by Dean Pavlekovic. llvm-svn: 141324
* Rip out flags for controlling C++ "production mode" separately.Bob Wilson2011-10-041-2/+1
| | | | | | | This is old leftover cruft from the days when C++ was not yet ready for prime time. llvm-svn: 141063
* Fix examples for r140478. PR11021.Eli Friedman2011-09-272-3/+3
| | | | llvm-svn: 140618
* Match LLVM change: TargetRegistry and TargetSelect have been moved to Support.Evan Cheng2011-08-241-1/+1
| | | | llvm-svn: 138451
* Remove EnhancedBugReport and RangedBugReport - pull all the extra ↵Anna Zaks2011-08-171-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
* Don't use BuiltinBug in analyzer plugin example.Jordy Rose2011-08-171-1/+1
| | | | llvm-svn: 137811
* [analyzer] Add basic support for pluggable checkers.Jordy Rose2011-08-173-0/+86
| | | | llvm-svn: 137802
* Reverts the Tooling changes as requested by Chris.Manuel Klimek2011-06-029-389/+1
| | | | llvm-svn: 132462
* Fixes Makefile based build for examples/Tooling.Manuel Klimek2011-06-013-3/+28
| | | | llvm-svn: 132380
* Put Parse before Sema on the link line since parse depends on sema.Nick Lewycky2011-06-011-2/+3
| | | | | | Also reflow these lines to fit in 80-col. llvm-svn: 132379
* This patch implements an AST matching framework that allows to writeManuel Klimek2011-05-314-0/+285
| | | | | | | | | | | tools that match on the C++ ASTs. The main interface is in ASTMatchers.h, an example implementation of a tool that removes redundant .c_str() calls is in the example RemoveCStrCalls.cpp. Various contributions: Zhanyong Wan, Chandler Carruth, Marcin Kowalczyk, Wei Xu, James Dennett. llvm-svn: 132374
* Fix linking of clang-wpa.Zhongxing Xu2011-05-311-3/+6
| | | | llvm-svn: 132329
* Fix examples compile break due to rewrite of isa.Manuel Klimek2011-05-231-1/+1
| | | | llvm-svn: 131912
* Pulls the common part of the clang-check example into Tooling, to allow new ↵Manuel Klimek2011-05-161-73/+6
| | | | | | tools to be implemented without duplicating the boilerplate. llvm-svn: 131425
* Let clang-check actually use the Directory entry in the json file.Nico Weber2011-05-141-0/+6
| | | | llvm-svn: 131367
* Fixes compilation with Visual Studio by replacing the non-standard ↵Manuel Klimek2011-05-101-2/+2
| | | | | | vector::data() access. llvm-svn: 131116
* Fix gcc 'warning: multi-line comment'.Nico Weber2011-04-301-2/+2
| | | | llvm-svn: 130583
* Add a Makefile to examples/Tooling for people who do not use cmake.Nico Weber2011-04-301-0/+24
| | | | llvm-svn: 130577
* Fix Makefile build of examples/clang-interpreter.Nico Weber2011-04-301-1/+1
| | | | llvm-svn: 130576
* This is the next step in building the standalone tools infrastructure:Manuel Klimek2011-04-273-1/+115
| | | | | | | | | | | | | | | 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
* Fixed build error.John Thompson2011-03-291-2/+1
| | | | llvm-svn: 128470
* [analyzer] Add LangOptions in CheckerManager.Argyrios Kyrtzidis2011-02-231-1/+2
| | | | llvm-svn: 126306
* Re-instate r125819 and r125820 with no functionality changePeter Collingbourne2011-02-192-26/+1
| | | | llvm-svn: 126060
* Revert 125820 and 125819 to fix PR9266.Rafael Espindola2011-02-192-1/+26
| | | | llvm-svn: 126050
* Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenActionPeter Collingbourne2011-02-182-26/+1
| | | | | | | | | This removes the final dependency edge from any lib outside of CodeGen to core. As a result we can, and do, trim the dependency on core from libclang, PrintFunctionNames, the unit tests and c-index-test. While at it, review and trim other unneeded dependencies. llvm-svn: 125820
* Fix the clang-wpa example.Argyrios Kyrtzidis2011-02-151-10/+34
| | | | llvm-svn: 125565
* [analyzer] Introduce libclangStaticAnalyzerFrontend and move ↵Argyrios Kyrtzidis2011-02-145-2/+5
| | | | | | Checkers/AnalysisConsumer.cpp into Frontend lib. llvm-svn: 125499
* CMake: LLVM_NO_RTTI must be obsolete now!NAKAMURA Takumi2011-02-103-6/+0
| | | | llvm-svn: 125275
* Split 'include/clang/StaticAnalyzer' into ↵Ted Kremenek2011-02-101-3/+3
| | | | | | | | 'include/clang/StaticAnalyzer/Core' and 'include/clang/StaticAnalyzer/Checkers'. This layout matches lib/StaticAnalyzer, which corresponds to two StaticAnalyzer libraries. llvm-svn: 125251
* Update clang-wpa to pass extra argument to AnalysisManager constructor.Ted Kremenek2011-02-091-1/+2
| | | | llvm-svn: 125235
* make `make` work in examples/PrintFucntionNames on Mac. I checked that it ↵Nico Weber2011-01-262-5/+11
| | | | | | still works on Linux. llvm-svn: 124325
* Fix name to match reality.Nick Lewycky2011-01-191-1/+1
| | | | llvm-svn: 123813
* Get clang-wpa to build in TOT (reflecting updatesTed Kremenek2011-01-181-6/+11
| | | | | | to the static analyzer). llvm-svn: 123727
* Chris Lattner has strong opinions about directoryTed Kremenek2010-12-235-8/+8
| | | | | | | | | | | | layout. :) Rename the 'EntoSA' directories to 'StaticAnalyzer'. Internally we will still use the 'ento' namespace for the analyzer engine (unless there are further sabre rattlings...). llvm-svn: 122514
* Rename headers: 'clang/GR' 'clang/EntoSA' andTed Kremenek2010-12-235-8/+8
| | | | | | update Makefile. llvm-svn: 122493
* [analyzer] Refactoring: Drop the 'GR' prefix.Argyrios Kyrtzidis2010-12-221-4/+4
| | | | llvm-svn: 122424
* [analyzer] Refactoring: Move checkers into lib/GR/Checkers and their own ↵Argyrios Kyrtzidis2010-12-225-2/+5
| | | | | | library, libclangGRCheckers llvm-svn: 122422
* [analyzer] Refactoring: lib/Checker -> lib/GR and libclangChecker -> ↵Argyrios Kyrtzidis2010-12-225-5/+5
| | | | | | libclangGRCore llvm-svn: 122421
* [analyzer] Refactoring: include/clang/Checker -> include/clang/GRArgyrios Kyrtzidis2010-12-221-4/+4
| | | | llvm-svn: 122420
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120297
* Unbreak clang-interpreter. (Should there be some automated testing for this?)Eli Friedman2010-11-241-1/+2
| | | | llvm-svn: 120069
* Add a comment explaining why r117813 was needed.Dan Gohman2010-11-171-0/+5
| | | | llvm-svn: 119518
* Turns out that we may end up calling dladdr on GetExecutablePath, give it ↵Benjamin Kramer2010-10-301-1/+1
| | | | | | external linkage to make sure the lookup works on all platforms. llvm-svn: 117813
* These functions don't need external linkage.Dan Gohman2010-10-291-2/+2
| | | | llvm-svn: 117733
* Rename 'MaxLoop' to 'MaxVisit' in AnalysisManager to more correctly reflect ↵Tom Care2010-09-141-1/+1
| | | | | | that we aborted analysis may not necessarily be due to a loop. llvm-svn: 113862
* PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build.Michael J. Spencer2010-09-141-0/+28
| | | | llvm-svn: 113835
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-133-36/+39
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-103-39/+36
| | | | | | of whatever we were using before... llvm-svn: 113631
* clang-interpreter: libFrontend depends on libSerialization. Fix linux build ↵Benjamin Kramer2010-08-262-2/+2
| | | | | | by changing the link order. llvm-svn: 112187
* Update clang-interpreter for recent DiagnosticClient ownership changes.Benjamin Kramer2010-08-261-2/+3
| | | | llvm-svn: 112181
OpenPOWER on IntegriCloud