- Apr 04, 2012
-
-
Manuel Klimek authored
Provides an API to run clang tools (FrontendActions) as standalone tools, or repeatedly in-memory in a process. This is useful for unit-testing, map-reduce style applications, source transformation daemons or command line tools. The ability to run over multiple translation units with different command line arguments enables building up refactoring tools that need to apply transformations across translation unit boundaries. See tools/clang-check/ClangCheck.cpp for an example. llvm-svn: 154008
-
- Jan 19, 2012
-
-
Argyrios Kyrtzidis authored
llvm-svn: 148478
-
- Dec 21, 2011
-
-
Argyrios Kyrtzidis authored
token locations as coming before the closing ')' of a function macro expansion. Include a unit test for SourceManager. llvm-svn: 147056
-
- Dec 16, 2011
-
-
Richard Smith authored
fails within a call to a constexpr function. Add -fconstexpr-backtrace-limit argument to driver and frontend, to control the maximum number of notes so produced (default 10). Fix APValue printing to be able to pretty-print all APValue types, and move the testing for this functionality from a unittest to a -verify test now that it's visible in clang's output. llvm-svn: 146749
-
- Jul 18, 2011
-
-
Jeffrey Yasskin authored
diagnostics. llvm-svn: 135398
-
- Jun 02, 2011
-
-
Manuel Klimek authored
llvm-svn: 132462
-
- Jun 01, 2011
-
-
Manuel Klimek authored
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
-
- May 11, 2011
-
-
Oscar Fuentes authored
gcc. Fixes PR9886. llvm-svn: 131182
-
- Apr 27, 2011
-
-
Manuel Klimek authored
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
-
- Apr 21, 2011
-
-
Manuel Klimek authored
the first step towards a standalone Clang tool infrastructure. The plan is to make it easy to build command line tools that run over the AST of source files in a project outside of the build system. llvm-svn: 129924
-
- Feb 20, 2011
-
-
Oscar Fuentes authored
Requires CMake 2.8.3 or newer. llvm-svn: 126094
-
- Feb 19, 2011
-
-
Jeffrey Yasskin authored
It would be nice to propagate this into the other functions to replace LLVM_LINK_COMPONENTS and friends, but I don't plan to do that. llvm-svn: 126032
-
Jeffrey Yasskin authored
needed or provided by the libraries under test. The next step is to import http://www.itk.org/Wiki/CMakeMacroParseArguments to make the empty string parameter unnecessary. llvm-svn: 126024
-
- Feb 18, 2011
-
-
Peter Collingbourne authored
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
-
- Feb 16, 2011
-
-
Zhanyong Wan authored
jyasskin and chapuni. llvm-svn: 125657
-
Zhanyong Wan authored
components" and "used libs" arguments of add_clang_unittest(). Reviewed by jyasskin and chapuni. llvm-svn: 125652
-
- Feb 15, 2011
-
-
Jeffrey Yasskin authored
llvm-svn: 125561
-