summaryrefslogtreecommitdiffstats
path: root/pp-trace
Commit message (Collapse)AuthorAgeFilesLines
* [CMake] Use PRIVATE in target_link_libraries for executablesShoaib Meenai2017-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently use target_link_libraries without an explicit scope specifier (INTERFACE, PRIVATE or PUBLIC) when linking executables. Dependencies added in this way apply to both the target and its dependencies, i.e. they become part of the executable's link interface and are transitive. Transitive dependencies generally don't make sense for executables, since you wouldn't normally be linking against an executable. This also causes issues for generating install export files when using LLVM_DISTRIBUTION_COMPONENTS. For example, clang has a lot of LLVM library dependencies, which are currently added as interface dependencies. If clang is in the distribution components but the LLVM libraries it depends on aren't (which is a perfectly legitimate use case if the LLVM libraries are being built static and there are therefore no run-time dependencies on them), CMake will complain about the LLVM libraries not being in export set when attempting to generate the install export file for clang. This is reasonable behavior on CMake's part, and the right thing is for LLVM's build system to explicitly use PRIVATE dependencies for executables. Unfortunately, CMake doesn't allow you to mix and match the keyword and non-keyword target_link_libraries signatures for a single target; i.e., if a single call to target_link_libraries for a particular target uses one of the INTERFACE, PRIVATE, or PUBLIC keywords, all other calls must also be updated to use those keywords. This means we must do this change in a single shot. I also fully expect to have missed some instances; I tested by enabling all the projects in the monorepo (except dragonegg), and configuring both with and without shared libraries, on both Darwin and Linux, but I'm planning to rely on the buildbots for other configurations (since it should be pretty easy to fix those). Even after this change, we still have a lot of target_link_libraries calls that don't specify a scope keyword, mostly for shared libraries. I'm thinking about addressing those in a follow-up, but that's a separate change IMO. Differential Revision: https://reviews.llvm.org/D40823 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@319840 91177308-0d34-0410-b5e6-96231b3b80d8
* [Support] Rename tool_output_file to ToolOutputFile, NFCReid Kleckner2017-09-231-2/+2
| | | | | | | This class isn't similar to anything from the STL, so it shouldn't use the STL naming conventions. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@314050 91177308-0d34-0410-b5e6-96231b3b80d8
* [pp-trace] Update skipped source ranges in testsVedant Kumar2017-09-112-3/+5
| | | | | | Depends on D36642 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@312948 91177308-0d34-0410-b5e6-96231b3b80d8
* Update Append Argument to more efficiently traverse tokensErich Keane2017-06-151-10/+9
| | | | | | | | | | | | | | | | This function was previously making (correct) assumptions without complete knowledge of MacroArgs guarantees for Arguments. After going through Macro Args a bunch, I'd corrected the getNumArguments (and changed its name), however didn't realize this was depending on the behavior. This patch has version that depends on the corrected getNumMacroArguments's behavior, with the rest checked against my knowledge of the MacroArgs' token list. Commiting no-wait since the test is broken. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@305434 91177308-0d34-0410-b5e6-96231b3b80d8
* Update callbacks tracker to match change in 305425Erich Keane2017-06-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@305426 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix API breaksDavid Blaikie2017-04-262-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@301468 91177308-0d34-0410-b5e6-96231b3b80d8
* modernize-use-auto NFC fixesPiotr Padlewski2016-12-141-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@289656 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some Clang-tidy modernize-use-default and Include What You Use warnings; ↵Eugene Zelenko2016-11-291-5/+11
| | | | | | | | | other minor fixes (NFC). This preparation to remove SetVector.h dependency on SmallSet.h. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@288175 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes.Eugene Zelenko2016-03-171-5/+3
| | | | | | | Differential revision: http://reviews.llvm.org/D18231 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@263726 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove autoconf supportChris Bieneman2016-01-261-22/+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 "Now I am become Death, the destroyer of worlds." -J. Robert Oppenheimer Reviewers: chandlerc, grosbach, bob.wilson, echristo Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D16475 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@258864 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Apply modernize-use-default to clang-tools-extra."David Blaikie2015-10-201-1/+1
| | | | | | | | | Breaks the build in GCC 4.7.2 (see http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3 for example) This reverts commit r250824. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250862 91177308-0d34-0410-b5e6-96231b3b80d8
* Apply modernize-use-default to clang-tools-extra.Angel Garcia Gomez2015-10-201-1/+1
| | | | | | | | | | | | Summary: Replace empty bodies of default constructors and destructors with '= default'. Reviewers: klimek Subscribers: alexfh, cfe-commits Differential Revision: http://reviews.llvm.org/D13889 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250824 91177308-0d34-0410-b5e6-96231b3b80d8
* Make a bunch of static arrays const.Craig Topper2015-10-182-17/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@250641 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r241330. It compiled with Visual C++ 2013 and gcc 4.9.1 (mingw) but ↵Yaron Keren2015-07-032-2/+2
| | | | | | now fails the bots. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@241335 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace some const std::string & with llvm::StringRef or std::stringYaron Keren2015-07-032-2/+2
| | | | | | | | | | and std::move to avoid implicit std::string construction. Patch by Eugene Kosov. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@241330 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for clang API change.Rafael Espindola2015-06-012-9/+8
| | | | | | Patch by Косов Евгений. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@238775 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix misleading parameter name for PPCallbacks::FileSkipped.Nikola Smiljanic2015-05-122-3/+3
| | | | | | Patch thanks to Vladimir Voskresensky. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@237116 91177308-0d34-0410-b5e6-96231b3b80d8
* Update to match clang r236404.Richard Smith2015-05-042-15/+37
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@236405 91177308-0d34-0410-b5e6-96231b3b80d8
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix svn diff | clang-format-diff -i Reviewers: dblaikie Reviewed By: dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D8927 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@234681 91177308-0d34-0410-b5e6-96231b3b80d8
* Make helpers static. clang-tools edition.Benjamin Kramer2015-03-232-14/+14
| | | | | | Also purge dead code found by it. NFC. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@232948 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Adapt clang-tools-extra to clang module format changes."Adrian Prantl2015-02-252-29/+24
| | | | | | This reverts commit 230424. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230456 91177308-0d34-0410-b5e6-96231b3b80d8
* Adapt clang-tools-extra to clang module format changes.Adrian Prantl2015-02-252-24/+29
| | | | | | | - add clangCodeGen.a to the tools that need it - tweak pp-trace command line handling to not conflict with clang's. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230424 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Adapt Makefile dependencies for the clang module format change in ↵Adrian Prantl2015-02-211-9/+2
| | | | | | r230089." git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230104 91177308-0d34-0410-b5e6-96231b3b80d8
* Adapt Makefile dependencies for the clang module format change in r230089.Adrian Prantl2015-02-201-2/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@230090 91177308-0d34-0410-b5e6-96231b3b80d8
* Unique_ptrify PPCallbacks ownership. Goes with clang r217474.Craig Topper2014-09-101-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@217475 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for LLVM api changeRafael Espindola2014-08-251-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@216396 91177308-0d34-0410-b5e6-96231b3b80d8
* Recommit 213308: unique_ptr-ify ownership of ASTConsumers (reverted in r213324)David Blaikie2014-08-101-3/+4
| | | | | | | | After post-commit review and community discussion, this seems like a reasonable direction to continue, making ownership semantics explicit in the source using the type system. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@215324 91177308-0d34-0410-b5e6-96231b3b80d8
* Plug memory leaks.Benjamin Kramer2014-07-241-2/+2
| | | | | | | Most of the changes are mechanic std::unique_ptr insertions. All leaks were detected by LeakSanitizer. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@213851 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "unique_ptr-ify ownership of ASTConsumers"David Blaikie2014-07-171-4/+3
| | | | | | | | | This reverts commit r213308. Reverting to have some on-list discussion/confirmation about the ongoing direction of smart pointer usage in the LLVM project. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@213324 91177308-0d34-0410-b5e6-96231b3b80d8
* unique_ptr-ify ownership of ASTConsumersDavid Blaikie2014-07-171-3/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@213308 91177308-0d34-0410-b5e6-96231b3b80d8
* Track clang changes from r210758Alp Toker2014-06-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210759 91177308-0d34-0410-b5e6-96231b3b80d8
* Prospective build fix following clang r210518Alp Toker2014-06-102-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210521 91177308-0d34-0410-b5e6-96231b3b80d8
* [C++11] Use 'nullptr'.Craig Topper2014-06-091-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210447 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove inclusions of LLVM's private config.hAlp Toker2014-06-041-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@210146 91177308-0d34-0410-b5e6-96231b3b80d8
* [C++11] Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-091-2/+1
| | | | | | | | This removes all references to OwningPtr, which should be fairly undisruptive to out-of-tree projects since they are unlikely to use clang-tools-extra as a library instead of a set of tools. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203382 91177308-0d34-0410-b5e6-96231b3b80d8
* [C++11] Replace LLVM_OVERRIDE with 'override'Craig Topper2014-03-021-30/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202632 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new 'remark' diagnostic typeTobias Grosser2014-02-281-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202477 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for llvm api change.Rafael Espindola2014-02-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202055 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for llvm api change.Rafael Espindola2014-02-241-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202045 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] clang-tools-extra: Update dependencies.NAKAMURA Takumi2013-12-101-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@196860 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] clang-tools-extra may not depend on LLVM CodeGen.NAKAMURA Takumi2013-12-091-4/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@196805 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a ↵John Thompson2013-12-072-6/+12
| | | | | | 3-state enum. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@196648 91177308-0d34-0410-b5e6-96231b3b80d8
* [extra] pp-trace - Fix for PragmaWarning output, adding tests for the pragma ↵John Thompson2013-11-141-0/+1
| | | | | | callbacks. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@194636 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed moduleImport and ident callbacks. Fixed modules test. Added ident ↵John Thompson2013-11-121-2/+2
| | | | | | callback test. A better test for moduleExport is coming. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@194447 91177308-0d34-0410-b5e6-96231b3b80d8
* [extra] pp-trace - Fixed problems found while writing docs.John Thompson2013-11-052-5/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@194079 91177308-0d34-0410-b5e6-96231b3b80d8
* Delete unused private field to fix -Werror buildAlexey Samsonov2013-10-311-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@193763 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix comment. pp-trace can only handle source file at a time.John Thompson2013-10-311-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@193746 91177308-0d34-0410-b5e6-96231b3b80d8
* pp-trace - preprocessor tacing and PPCallbacks testing toolJohn Thompson2013-10-315-0/+1144
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@193743 91177308-0d34-0410-b5e6-96231b3b80d8