This change adds CxxParser a class for parsing cxx files. It holds basic functionality to detect classes using the clang libTooling classes. CxxParser is derived from a common Parser interface, which can later be used for other language parsers. The Parser forwards detected elements to a ParserClient interface, which is implemented by the Storage class. The detected classes only get logged so far. review id = 6 * bd3c63a - (HEAD, origin/class, class) applied second review <Eberhard Graether> (4 minutes ago) * 3db7d93 - added missing files <Eberhard Graether> (4 days ago) * 6d09f4e - applied review <Eberhard Graether> (4 days ago) * d9d3e64 - fixed CMake files <Eberhard Graether> (4 days ago) * f22a771 - only one Storage class <Eberhard Graether> (4 days ago) * 6ee9553 - added tests <Eberhard Graether> (4 days ago) * 0a525e8 - fixed includes <Eberhard Graether> (4 days ago) * ca3fbb8 - added StorageManager as ParserClient <Eberhard Graether> (4 days ago) * fa185a5 - renamed ParseLocation to ParseObject <Eberhard Graether> (4 days ago) * 8b89808 - pass location with ParseLocation object <Eberhard Graether> (4 days ago) * 548ae3c - renamed clang AST classes <Eberhard Graether> (4 days ago) * d3b2caf - cleaned includes <Eberhard Graether> (4 days ago) * f7fdf33 - removed using namespace stmts <Eberhard Graether> (4 days ago) * 5378ef6 - using ParserClient <Eberhard Graether> (4 days ago) * b9ce2f6 - working with test file <Eberhard Graether> (4 days ago) * 5585abc - added CxxParser and ParserClient <Eberhard Graether> (4 days ago)
98 lines
2.0 KiB
CMake
98 lines
2.0 KiB
CMake
add_files(
|
|
CLANG_FILES
|
|
|
|
data/parser/cxx/ASTAction.cpp
|
|
data/parser/cxx/ASTAction.h
|
|
data/parser/cxx/ASTActionFactory.cpp
|
|
data/parser/cxx/ASTActionFactory.h
|
|
data/parser/cxx/ASTConsumer.cpp
|
|
data/parser/cxx/ASTConsumer.h
|
|
data/parser/cxx/ASTVisitor.cpp
|
|
data/parser/cxx/ASTVisitor.h
|
|
data/parser/cxx/CxxParser.cpp
|
|
data/parser/cxx/CxxParser.h
|
|
)
|
|
|
|
add_files(
|
|
LIB_FILES
|
|
|
|
component/controller/CodeController.cpp
|
|
component/controller/CodeController.h
|
|
component/controller/Controller.cpp
|
|
component/controller/Controller.h
|
|
|
|
component/view/CodeView.cpp
|
|
component/view/CodeView.h
|
|
component/view/View.cpp
|
|
component/view/View.h
|
|
component/view/ViewManager.cpp
|
|
component/view/ViewManager.h
|
|
|
|
component/Component.cpp
|
|
component/Component.h
|
|
component/ComponentFactory.cpp
|
|
component/ComponentFactory.h
|
|
component/ComponentManager.cpp
|
|
component/ComponentManager.h
|
|
|
|
data/access/CodeAccess.cpp
|
|
data/access/CodeAccess.h
|
|
data/access/GraphAccess.cpp
|
|
data/access/GraphAccess.h
|
|
|
|
data/parser/ParseObject.h
|
|
data/parser/Parser.cpp
|
|
data/parser/Parser.h
|
|
data/parser/ParserClient.cpp
|
|
data/parser/ParserClient.h
|
|
|
|
data/Edge.cpp
|
|
data/Edge.h
|
|
data/Element.cpp
|
|
data/Element.h
|
|
data/ElementIndex.cpp
|
|
data/ElementIndex.h
|
|
data/Graph.cpp
|
|
data/Graph.h
|
|
data/Node.cpp
|
|
data/Node.h
|
|
data/SearchIndex.cpp
|
|
data/SearchIndex.h
|
|
data/Storage.cpp
|
|
data/Storage.h
|
|
data/TextLocation.cpp
|
|
data/TextLocation.h
|
|
data/TextLocationFile.cpp
|
|
data/TextLocationFile.h
|
|
data/TextLocationLine.cpp
|
|
data/TextLocationLine.h
|
|
|
|
gui/GuiElement.cpp
|
|
gui/GuiElement.h
|
|
gui/GuiElementFactory.cpp
|
|
gui/GuiElementFactory.h
|
|
|
|
utility/logging/ConsoleLogger.cpp
|
|
utility/logging/ConsoleLogger.h
|
|
utility/logging/Logger.cpp
|
|
utility/logging/Logger.h
|
|
utility/logging/logging.h
|
|
utility/logging/LogManager.cpp
|
|
utility/logging/LogManager.h
|
|
utility/logging/LogMessage.h
|
|
|
|
utility/math/Vector2.h
|
|
|
|
utility/ConfigManager.cpp
|
|
utility/ConfigManager.h
|
|
|
|
Application.cpp
|
|
Application.h
|
|
ApplicationSettings.cpp
|
|
ApplicationSettings.h
|
|
Project.cpp
|
|
Project.h
|
|
ProjectSettings.cpp
|
|
ProjectSettings.h
|
|
)
|