aboutsummaryrefslogtreecommitdiffstats
path: root/cgrep.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-04-30 15:02:01 +0000
committerbloodstalker <thabogre@gmail.com>2020-04-30 15:02:01 +0000
commita2ccebe27554d196fbcadf4fd230fb1b4b14090a (patch)
treeab77721e278cb6c903da0c1518279b9fe140fee6 /cgrep.cpp
parentwork in progress (diff)
downloadcgrep-a2ccebe27554d196fbcadf4fd230fb1b4b14090a.tar.gz
cgrep-a2ccebe27554d196fbcadf4fd230fb1b4b14090a.zip
working on the test script
Diffstat (limited to 'cgrep.cpp')
-rw-r--r--cgrep.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/cgrep.cpp b/cgrep.cpp
index 0a0888c..15ee524 100644
--- a/cgrep.cpp
+++ b/cgrep.cpp
@@ -7,27 +7,7 @@
* */
/***********************************************************************************************/
/*included modules*/
-#include "./cfe-extra/cfe_extra.h"
-#include "clang/AST/AST.h"
-#include "clang/AST/ASTConsumer.h"
-#include "clang/ASTMatchers/ASTMatchFinder.h"
-#include "clang/ASTMatchers/ASTMatchers.h"
-#include "clang/Basic/LLVM.h"
-#include "clang/Frontend/CompilerInstance.h"
-#include "clang/Frontend/FrontendActions.h"
-#include "clang/Lex/Lexer.h"
-#include "clang/Rewrite/Core/Rewriter.h"
-#include "clang/Tooling/CommonOptionsParser.h"
-#include "clang/Tooling/Tooling.h"
-#include "llvm/Support/raw_ostream.h"
-#include <cassert>
-#include <cstdlib>
-#include <dirent.h>
-#include <fstream>
-#include <iostream>
-#include <regex>
-#include <string>
-#include <vector>
+#include "pch.hpp"
/***********************************************************************************************/
/*used namespaces*/
using namespace llvm;
@@ -209,7 +189,7 @@ static std::string get_line_from_file(SourceManager &SM,
*/
std::string regex_preprocessor(const std::string &rx_str) {
std::string ret_rx_str;
- return ret_rx_str;
+ return rx_str;
}
bool regex_handler(std::string rx_str, std::string identifier_name) {