forked from dotnet/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverted to correct commit this time.
llvm-svn: 162624
- Loading branch information
1 parent
228e6d4
commit 8e0df50
Showing
11 changed files
with
297 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
add_subdirectory(remove-cstr-calls) | ||
add_subdirectory(tool-template) | ||
|
||
# Add the common testsuite after all the tools. | ||
add_subdirectory(test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
============================================================================== | ||
LLVM Release License | ||
============================================================================== | ||
University of Illinois/NCSA | ||
Open Source License | ||
|
||
Copyright (c) 2007-2012 University of Illinois at Urbana-Champaign. | ||
All rights reserved. | ||
|
||
Developed by: | ||
|
||
LLVM Team | ||
|
||
University of Illinois at Urbana-Champaign | ||
|
||
http://llvm.org | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal with | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimers. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimers in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
* Neither the names of the LLVM Team, University of Illinois at | ||
Urbana-Champaign, nor the names of its contributors may be used to | ||
endorse or promote products derived from this Software without specific | ||
prior written permission. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE | ||
SOFTWARE. | ||
|
||
============================================================================== | ||
The LLVM software contains code written by third parties. Such software will | ||
have its own individual LICENSE.TXT file in the directory in which it appears. | ||
This file will describe the copyrights, license, and restrictions which apply | ||
to that code. | ||
|
||
The disclaimer of warranty in the University of Illinois Open Source License | ||
applies to all code in the LLVM Distribution, and nothing in any of the | ||
other licenses gives permission to use the names of the LLVM Team or the | ||
University of Illinois to endorse or promote products derived from this | ||
Software. | ||
|
||
The following pieces of software have additional or alternate copyrights, | ||
licenses, and/or restrictions: | ||
|
||
Program Directory | ||
------- --------- | ||
<none yet> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
##===- tools/extra/Makefile --------------------------------*- Makefile -*-===## | ||
# | ||
# The LLVM Compiler Infrastructure | ||
# | ||
# This file is distributed under the University of Illinois Open Source | ||
# License. See LICENSE.TXT for details. | ||
# | ||
##===----------------------------------------------------------------------===## | ||
|
||
CLANG_LEVEL := ../.. | ||
|
||
include $(CLANG_LEVEL)/../../Makefile.config | ||
|
||
PARALLEL_DIRS := remove-cstr-calls tool-template | ||
|
||
include $(CLANG_LEVEL)/Makefile | ||
|
||
### | ||
# Handle the nested test suite. | ||
|
||
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT)) | ||
$(RecursiveTargets):: | ||
$(Verb) for dir in test; do \ | ||
if [ -f $(PROJ_SRC_DIR)/$${dir}/Makefile ] && [ ! -f $${dir}/Makefile ]; then \ | ||
$(MKDIR) $${dir}; \ | ||
$(CP) $(PROJ_SRC_DIR)/$${dir}/Makefile $${dir}/Makefile; \ | ||
fi \ | ||
done | ||
endif | ||
|
||
test:: | ||
@ $(MAKE) -C test | ||
|
||
report:: | ||
@ $(MAKE) -C test report | ||
|
||
clean:: | ||
@ $(MAKE) -C test clean | ||
|
||
.PHONY: test report clean |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//===----------------------------------------------------------------------===// | ||
// Clang Tools repository | ||
//===----------------------------------------------------------------------===// | ||
|
||
Welcome to the repository of extra Clang Tools. This repository holds tools | ||
that are developed as part of the LLVM compiler infrastructure project and the | ||
Clang frontend. These tools are kept in a separate "extra" repository to | ||
allow lighter weight checkouts of the core Clang codebase. | ||
|
||
This repository is only intended to be checked out inside of a full LLVM+Clang | ||
tree, and in the 'tools/extra' subdirectory of the Clang checkout. | ||
|
||
All discussion regarding Clang, Clang-based tools, and code in this repository | ||
should be held using the standard Clang mailing lists: | ||
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev | ||
|
||
Code review for this tree should take place on the standard Clang patch and | ||
commit lists: | ||
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits | ||
|
||
If you find a bug in these tools, please file it in the LLVM bug tracker: | ||
http://llvm.org/bugs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_clang_executable(tool-template | ||
ToolTemplate.cpp | ||
) | ||
|
||
target_link_libraries(tool-template | ||
clangEdit clangTooling clangBasic clangAST clangASTMatchers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
##===-------- tools/toolTemplate/Makefile ------------------*- Makefile -*-===## | ||
# | ||
# The LLVM Compiler Infrastructure | ||
# | ||
# This file is distributed under the University of Illinois Open Source | ||
# License. See LICENSE.TXT for details. | ||
# | ||
##===----------------------------------------------------------------------===## | ||
|
||
CLANG_LEVEL := ../../.. | ||
|
||
TOOLNAME = tool-template | ||
NO_INSTALL = 1 | ||
|
||
# No plugins, optimize startup time. | ||
TOOL_NO_EXPORTS = 1 | ||
|
||
include $(CLANG_LEVEL)/../../Makefile.config | ||
LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc | ||
USEDLIBS = clangTooling.a clangFrontend.a clangSerialization.a clangDriver.a \ | ||
clangRewrite.a clangParse.a clangSema.a clangAnalysis.a \ | ||
clangAST.a clangASTMatchers.a clangEdit.a clangLex.a clangBasic.a | ||
|
||
include $(CLANG_LEVEL)/Makefile |
Oops, something went wrong.