7da9487dd4 
								
							 
						 
						
							
							
								
								[CMake] Get rid of explicit dependencies to include/clang/*.inc and introduce CLANG_TABLEGEN_TARGETS.  
							
							... 
							
							
							
							This does;
  - clang_tablegen() adds each tblgen'd target to global property CLANG_TABLEGEN_TARGETS as list.
  - List of targets is added to LLVM_COMMON_DEPENDS.
  - all clang libraries and targets depend on generated headers.
You might wonder this would be regression, but in fact, this is little loss.
  - Almost all of clang libraries depend on tblgen'd files and clang-tblgen.
  - clang-tblgen may cause short stall-out but doesn't cause unconditional rebuild.
  - Each library's dependencies to tblgen'd files might vary along headers' structure.
    It made hard to track and update *really optimal* dependencies.
Each dependency to intrinsics_gen and ClangSACheckers is left as DEPENDS.
llvm-svn: 201842 
							
						 
						
							2014-02-21 07:59:59 +00:00  
				
					
						
							
							
								 
						
							
								ab57f79df4 
								
							 
						 
						
							
							
								
								[examples] Add tablegen'd ClangCommentCommandList as a dependency for plugins.  
							
							... 
							
							
							
							Also, remove library dependencies for the sample analyzer-plugin. The only
library changes that would require a rebuild should be in headers, which
should already implicitly be marked as dependencies.
llvm-svn: 201350 
							
						 
						
							2014-02-13 18:12:30 +00:00  
				
					
						
							
							
								 
						
							
								68db107c81 
								
							 
						 
						
							
							
								
								[examples] Use loadable modules instead of shared libraries for Clang plugins.  
							
							... 
							
							
							
							This avoids linking in extra copies of, say, LLVMSupport.
llvm-svn: 201256 
							
						 
						
							2014-02-12 21:04:23 +00:00  
				
					
						
							
							
								 
						
							
								ac3ff26885 
								
							 
						 
						
							
							
								
								[CMake] Parameterize MODULE and SHARED in add_clang_library().  
							
							... 
							
							
							
							llvm-svn: 199902 
							
						 
						
							2014-01-23 15:33:44 +00:00  
				
					
						
							
							
								 
						
							
								c45921903f 
								
							 
						 
						
							
							
								
								Don't use PrintFunctionNames.exports on Windows.  
							
							... 
							
							
							
							llvm-svn: 198187 
							
						 
						
							2013-12-30 00:05:56 +00:00  
				
					
						
							
							
								 
						
							
								e8ef46c851 
								
							 
						 
						
							
							
								
								Fix typo in comment.  
							
							... 
							
							
							
							llvm-svn: 198186 
							
						 
						
							2013-12-29 23:15:01 +00:00  
				
					
						
							
							
								 
						
							
								216436c77a 
								
							 
						 
						
							
							
								
								[cmake] Set in LLVM_EXPORTED_SYMBOL_FILE PrintFunctionNames/CMakeLists.txt.  
							
							... 
							
							
							
							The corresponding Makefile sets it too. Also tweak add_clang_library to support
LLVM_EXPORTED_SYMBOL_FILE for modules.
llvm-svn: 198185 
							
						 
						
							2013-12-29 23:14:26 +00:00  
				
					
						
							
							
								 
						
							
								9477f9e52f 
								
							 
						 
						
							
							
								
								Fix getCustomDiagID() usage in example code  
							
							... 
							
							
							
							This was setting a bad example. DiagIDs are a limited resource and the message
argument is evaluated as a format string.
llvm-svn: 197855 
							
						 
						
							2013-12-21 05:19:58 +00:00  
				
					
						
							
							
								 
						
							
								ac85179219 
								
							 
						 
						
							
							
								
								[CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each CMakeLists.txt.  
							
							... 
							
							
							
							llvm-svn: 196916 
							
						 
						
							2013-12-10 12:40:37 +00:00  
				
					
						
							
							
								 
						
							
								27c42e66bb 
								
							 
						 
						
							
							
								
								Revert r170801, which breaks the mingw build.  
							
							... 
							
							
							
							llvm-svn: 170804 
							
						 
						
							2012-12-20 23:36:52 +00:00  
				
					
						
							
							
								 
						
							
								d04592dc81 
								
							 
						 
						
							
							
								
								Eliminate errors when running the 'PrintFunctionNames' plugin, from Li Qun!  
							
							... 
							
							
							
							llvm-svn: 170801 
							
						 
						
							2012-12-20 23:11:42 +00:00  
				
					
						
							
							
								 
						
							
								8675b4af77 
								
							 
						 
						
							
							
								
								Sort the #include lines for examples/...  
							
							... 
							
							
							
							llvm-svn: 169241 
							
						 
						
							2012-12-04 09:37:22 +00:00  
				
					
						
							
							
								 
						
							
								a9a35c67e1 
								
							 
						 
						
							
							
								
								libclang, examples: [CMake] Add dependencies to tblgen'd headers.  
							
							... 
							
							
							
							llvm-svn: 160849 
							
						 
						
							2012-07-27 06:17:56 +00:00  
				
					
						
							
							
								 
						
							
								28969b4139 
								
							 
						 
						
							
							
								
								Remove a goofy CMake hack and use the standard CMake facilities to  
							
							... 
							
							
							
							express library-level dependencies within Clang.
This is no more verbose really, and plays nicer with the rest of the
CMake facilities. It should also have no change in functionality.
llvm-svn: 158888 
							
						 
						
							2012-06-21 01:30:21 +00:00  
				
					
						
							
							
								 
						
							
								34e0f6cba2 
								
							 
						 
						
							
							
								
								Reverted unintentional commit.  
							
							... 
							
							
							
							llvm-svn: 155629 
							
						 
						
							2012-04-26 08:46:12 +00:00  
				
					
						
							
							
								 
						
							
								c01d3fbe0f 
								
							 
						 
						
							
							
								
								Adds a small tutorial on how to write RAV based ASTFrontendActions.  
							
							... 
							
							
							
							llvm-svn: 155627 
							
						 
						
							2012-04-26 08:35:39 +00:00  
				
					
						
							
							
								 
						
							
								4cde694855 
								
							 
						 
						
							
							
								
								examples: flesh out PFN readme  
							
							... 
							
							
							
							Show how to actually use the arguments it has.
llvm-svn: 146845 
							
						 
						
							2011-12-18 11:30:53 +00:00  
				
					
						
							
							
								 
						
							
								9f39a765e2 
								
							 
						 
						
							
							
								
								Update signature of HandleTopLevelDecl.  
							
							... 
							
							
							
							llvm-svn: 145001 
							
						 
						
							2011-11-19 19:22:13 +00:00  
				
					
						
							
							
								 
						
							
								f42db7ce48 
								
							 
						 
						
							
							
								
								Fix examples for r140478.  PR11021.  
							
							... 
							
							
							
							llvm-svn: 140618 
							
						 
						
							2011-09-27 18:33:47 +00:00  
				
					
						
							
							
								 
						
							
								8f5cf74c77 
								
							 
						 
						
							
							
								
								Re-instate r125819 and r125820 with no functionality change  
							
							... 
							
							
							
							llvm-svn: 126060 
							
						 
						
							2011-02-19 23:03:58 +00:00  
				
					
						
							
							
								 
						
							
								a6d2bff0c5 
								
							 
						 
						
							
							
								
								Revert 125820 and 125819 to fix PR9266.  
							
							... 
							
							
							
							llvm-svn: 126050 
							
						 
						
							2011-02-19 21:39:31 +00:00  
				
					
						
							
							
								 
						
							
								14a552b2d7 
								
							 
						 
						
							
							
								
								Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenAction  
							
							... 
							
							
							
							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 
							
						 
						
							2011-02-18 02:25:12 +00:00  
				
					
						
							
							
								 
						
							
								ecd3334dac 
								
							 
						 
						
							
							
								
								[analyzer] Introduce libclangStaticAnalyzerFrontend and move Checkers/AnalysisConsumer.cpp into Frontend lib.  
							
							... 
							
							
							
							llvm-svn: 125499 
							
						 
						
							2011-02-14 18:13:01 +00:00  
				
					
						
							
							
								 
						
							
								98dd73d66c 
								
							 
						 
						
							
							
								
								CMake: LLVM_NO_RTTI must be obsolete now!  
							
							... 
							
							
							
							llvm-svn: 125275 
							
						 
						
							2011-02-10 09:15:32 +00:00  
				
					
						
							
							
								 
						
							
								60cd00b2cc 
								
							 
						 
						
							
							
								
								make `make` work in examples/PrintFucntionNames on Mac. I checked that it still works on Linux.  
							
							... 
							
							
							
							llvm-svn: 124325 
							
						 
						
							2011-01-26 21:28:52 +00:00  
				
					
						
							
							
								 
						
							
								0c49533039 
								
							 
						 
						
							
							
								
								Fix name to match reality.  
							
							... 
							
							
							
							llvm-svn: 123813 
							
						 
						
							2011-01-19 05:59:39 +00:00  
				
					
						
							
							
								 
						
							
								d99bd55a5e 
								
							 
						 
						
							
							
								
								Chris Lattner has strong opinions about directory  
							
							... 
							
							
							
							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 
							
						 
						
							2010-12-23 19:38:26 +00:00  
				
					
						
							
							
								 
						
							
								ef33f0996c 
								
							 
						 
						
							
							
								
								Rename headers: 'clang/GR' 'clang/EntoSA' and  
							
							... 
							
							
							
							update Makefile.
llvm-svn: 122493 
							
						 
						
							2010-12-23 07:22:02 +00:00  
				
					
						
							
							
								 
						
							
								a700e976b6 
								
							 
						 
						
							
							
								
								[analyzer] Refactoring: Move checkers into lib/GR/Checkers and their own library, libclangGRCheckers  
							
							... 
							
							
							
							llvm-svn: 122422 
							
						 
						
							2010-12-22 18:52:56 +00:00  
				
					
						
							
							
								 
						
							
								2ff5ab1516 
								
							 
						 
						
							
							
								
								[analyzer] Refactoring: lib/Checker -> lib/GR and libclangChecker -> libclangGRCore  
							
							... 
							
							
							
							llvm-svn: 122421 
							
						 
						
							2010-12-22 18:52:29 +00:00  
				
					
						
							
							
								 
						
							
								433e9c7f2a 
								
							 
						 
						
							
							
								
								PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build.  
							
							... 
							
							
							
							llvm-svn: 113835 
							
						 
						
							2010-09-14 06:39:35 +00:00  
				
					
						
							
							
								 
						
							
								09476212de 
								
							 
						 
						
							
							
								
								Revert "CMake: Update to use standard CMake dependency tracking facilities instead"  
							
							... 
							
							
							
							This reverts commit r113631
Conflicts:
	CMakeLists.txt
	lib/CodeGen/CMakeLists.txt
llvm-svn: 113817 
							
						 
						
							2010-09-13 23:54:41 +00:00  
				
					
						
							
							
								 
						
							
								0881f4a367 
								
							 
						 
						
							
							
								
								CMake: Update to use standard CMake dependency tracking facilities instead  
							
							... 
							
							
							
							of whatever we were using before...
llvm-svn: 113631 
							
						 
						
							2010-09-10 21:13:16 +00:00  
				
					
						
							
							
								 
						
							
								2be96746b4 
								
							 
						 
						
							
							
								
								Frontend: Change PluginASTAction::ParseArgs to take a CompilerInstance object  
							
							... 
							
							
							
							for use in reporting diagnostics.
 - We don't want to use the Action's own CompilerInstance, because that is only
   initialized during file processing and I like that invariant.
Also, if ParseArgs returns false then abandon execution.
Also, remove unused PluginASTAction::PrintHelp virtual method.
llvm-svn: 110039 
							
						 
						
							2010-08-02 15:31:28 +00:00  
				
					
						
							
							
								 
						
							
								a8b949883e 
								
							 
						 
						
							
							
								
								Make a variable static.  
							
							... 
							
							
							
							llvm-svn: 109438 
							
						 
						
							2010-07-26 21:12:29 +00:00  
				
					
						
							
							
								 
						
							
								c0539d2eb6 
								
							 
						 
						
							
							
								
								Use an export file. Plugins must export llvm::Registry symbols.  
							
							... 
							
							
							
							Also, don't link in all the clang libraries statically.
llvm-svn: 109436 
							
						 
						
							2010-07-26 21:12:10 +00:00  
				
					
						
							
							
								 
						
							
								d54e2aba6c 
								
							 
						 
						
							
							
								
								PrintFunctionNames is a plugin, it should pull in symbols from the clang binary  
							
							... 
							
							
							
							that loads it, not by linking against them directly.
llvm-svn: 108055 
							
						 
						
							2010-07-10 20:24:23 +00:00  
				
					
						
							
							
								 
						
							
								7c995e8fac 
								
							 
						 
						
							
							
								
								Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy Straszheim!  
							
							... 
							
							
							
							llvm-svn: 106113 
							
						 
						
							2010-06-16 16:59:23 +00:00  
				
					
						
							
							
								 
						
							
								d04e1a7ef1 
								
							 
						 
						
							
							
								
								Makefiles: Remove unnecessary early include of Makefile.config.  
							
							... 
							
							
							
							llvm-svn: 105640 
							
						 
						
							2010-06-08 20:57:22 +00:00  
				
					
						
							
							
								 
						
							
								ee6b692551 
								
							 
						 
						
							
							
								
								Makefiles: Set Clang CPP compiler flags in a single location, instead of scattered throughout the project Makefiles.  
							
							... 
							
							
							
							llvm-svn: 105638 
							
						 
						
							2010-06-08 20:44:43 +00:00  
				
					
						
							
							
								 
						
							
								e6c1daa8fd 
								
							 
						 
						
							
							
								
								Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.  
							
							... 
							
							
							
							- This eliminates most dependencies on how Clang is installed relative to LLVM.
llvm-svn: 105637 
							
						 
						
							2010-06-08 20:34:18 +00:00  
				
					
						
							
							
								 
						
							
								61b5ff5ab4 
								
							 
						 
						
							
							
								
								Teach the PrintFunctionNames example to be a proper module, so that  
							
							... 
							
							
							
							Clang can load it as a plugin. Original fix by Troy D. Straszheim,
which I extended with Darwin support. Fixes PR6801.
llvm-svn: 105630 
							
						 
						
							2010-06-08 19:23:49 +00:00  
				
					
						
							
							
								 
						
							
								0bcc858a2b 
								
							 
						 
						
							
							
								
								-fno-rtti is now the default.  
							
							... 
							
							
							
							llvm-svn: 94379 
							
						 
						
							2010-01-24 20:43:31 +00:00  
				
					
						
							
							
								 
						
							
								d79f40ac7a 
								
							 
						 
						
							
							
								
								Fix -plugin command line argument syntax for clang -cc1 change.  
							
							... 
							
							
							
							llvm-svn: 92780 
							
						 
						
							2010-01-05 21:42:23 +00:00  
				
					
						
							
							
								 
						
							
								520d1e6c6b 
								
							 
						 
						
							
							
								
								Update docs/comments/utils/examples to refer to clang -cc1 instead of clang-cc.  
							
							... 
							
							
							
							llvm-svn: 91176 
							
						 
						
							2009-12-11 23:04:35 +00:00  
				
					
						
							
							
								 
						
							
								5732ce39bc 
								
							 
						 
						
							
							
								
								Update example link lines.  
							
							... 
							
							
							
							llvm-svn: 90359 
							
						 
						
							2009-12-03 00:00:22 +00:00  
				
					
						
							
							
								 
						
							
								9110165da9 
								
							 
						 
						
							
							
								
								Add a very minimal README.txt for examples/PrintFunctionNames.  
							
							... 
							
							
							
							llvm-svn: 90197 
							
						 
						
							2009-12-01 03:15:49 +00:00  
				
					
						
							
							
								 
						
							
								6499e9c625 
								
							 
						 
						
							
							
								
								Add a trivial example plugin, which prints the names of the top-level decls.  
							
							... 
							
							
							
							- The build scriptage is about twice as long as the code, which is nice. :)
llvm-svn: 88826 
							
						 
						
							2009-11-15 00:27:43 +00:00