Permalink
Browse files

Storing and finding simple declarations works

  • Loading branch information...
1 parent e5dd9f2 commit 07947ef4e968ada04f4ed84f9e803434683c07f3 @jwiegley committed May 21, 2012
Showing with 423 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +15 −0 CMakeLists.txt
  3. +43 −0 src/CMakeLists.txt
  4. +360 −0 src/main.cpp
View
@@ -0,0 +1,5 @@
+CMakeCache.txt
+CMakeFiles/
+*.cmake
+Makefile
+clang-tags
View
@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 2.8.8)
+
+project(clang-tags)
+
+set(Ledger_VERSION_MAJOR 0)
@dabrahams

dabrahams May 25, 2012

I don't really think you mean that :-)

+set(Ledger_VERSION_MINOR 1)
+set(Ledger_VERSION_PATCH 0)
+
+enable_testing()
+
+########################################################################
+
+add_subdirectory(src)
+
+### CMakeLists.txt ends here
View
@@ -0,0 +1,43 @@
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
+
+add_executable(clang-tags main.cpp)
+
+execute_process(
+ COMMAND llvm-config --cxxflags OUTPUT_VARIABLE LLVM_CXX_FLAGS
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+execute_process(
+ COMMAND llvm-config --ldflags --libs OUTPUT_VARIABLE LLVM_LINK_FLAGS
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+string(REPLACE "-O3" "" LLVM_CXX_FLAGS ${LLVM_CXX_FLAGS})
+string(REPLACE "-NDEBUG" "" LLVM_CXX_FLAGS ${LLVM_CXX_FLAGS})
+string(REPLACE "\n" " " LLVM_LINK_FLAGS ${LLVM_LINK_FLAGS})
+
+set_source_files_properties(main.cpp PROPERTIES COMPILE_FLAGS ${LLVM_CXX_FLAGS})
+
+add_definitions("-fno-rtti")
+
+set_target_properties(clang-tags PROPERTIES COMPILE_FLAGS ${LLVM_CXX_FLAGS})
+set_target_properties(clang-tags PROPERTIES LINK_FLAGS ${LLVM_LINK_FLAGS})
+
+target_link_libraries(clang-tags
+ clangARCMigrate
+ clangAST
+ clangAnalysis
+ clangBasic
+ clangCodeGen
+ clangDriver
+ clangEdit
+ clangFrontend
+ clangFrontendTool
+ clangLex
+ clangParse
+ clangRewrite
+ clangSema
+ clangSerialization
+ clangStaticAnalyzerCheckers
+ clangStaticAnalyzerCore
+ clangStaticAnalyzerFrontend
+ clangTooling
+
+ sqlite3)
Oops, something went wrong.

0 comments on commit 07947ef

Please sign in to comment.