Skip to content

Commit 79a90af

Browse files
elizabethdinellabmcutler
authored andcommitted
Common ast initial (#59)
* Initial commit of spring2017 commonAST tools * updated source files and added tests * adding make file * Added CMake file for ASTMatcher * Changes to make runner take multiple files * moved sym link in other direction * changed sym link for astMatcher * python 3 print statement updates * changed path and name of count.out * added full path for astMatcher.py * added full path of cpp ast matcher executable * changes in path and calling bin/ASTMatcher executable * fixed checking len of argv bug * Added python test files * Added name: before imports * Fixed bug to allow every file to run through AST matching * Added cpp test files * Made changes to the way commonast takes filenames as input * modified commonast * fixed bug in adding filenames to list * File to test my count against sam's * added cs1 test files * fixed syntax errors * added what to count * fixed function def * added node to submitty_count * added node * printing fname * updated test files to python3 * removing print * Added calls to commonAST * fixed output of commonast and submitty_count calls * switched from popen to check_output * fixed bug - order of arg and fname in commonast call * Fixed chaining calls error * Fixed calling a func on a implicit call * Made output of parser.cpp equivalent to output of sam's tool * Added exits to parser to avoid infinite loops on error and added debug output to compareTest * Fixed else statement bug * Fixed importing to add a closing tag * Fixed to add ending import tags * Fixed decreasing elseif statement level * made sure there are new lines after all args * Fixed an issue in call chaining * Added a total count print to test * Fixed global variable counter error * Added functionality to count while loops * Added framework to allow submitty_count call * Added framework to allow submitty_count call * Fixed bug in counting total * Fixed call counting * added function to countCalls and committing json output * Commenting out json output * Removed forbiddenFunc as thats just counting calls = 0 * fixed adding args to the nodesToCount vect when there is only one arg bug * Fixed calling submitty_count with a arg bug * Added functionality to include print in my IR * Added option for json output * fixed jsonOutput arg error * Fixed commenting and added global declaration of option * Removed functionality to run on multiple files as I did not see a usecase for it and it was making things complicated. Additionally, fixed bug in parser that assigned null to a new instance of a string * Migrated to the python3 ast library * Fixed bug in getting children of args if there are no children * Added clang install script * Deleted this version of clang install. The correct one is in a different directory * Added </ipmorting> tag in C++ and fixed CMakeLists.txt to make the import work * Switched to a count mode and a print mode and added functionality for multiple files * Added exception handling and changed argument order for print mode * JSON print mode added * Fixed json call arg error * removed astMatcherLink * removed parserLink
1 parent ae8a0f4 commit 79a90af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+7815
-0
lines changed

cmake_install.cmake

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Install script for directory: /home/elizabethdinella/clang-llvm/llvm/tools/clang/tools/extra/ASTMatcher
2+
3+
# Set the install prefix
4+
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
5+
set(CMAKE_INSTALL_PREFIX "/usr/local")
6+
endif()
7+
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
8+
9+
# Set the install configuration name.
10+
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
11+
if(BUILD_TYPE)
12+
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
13+
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
14+
else()
15+
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
16+
endif()
17+
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
18+
endif()
19+
20+
# Set the component getting installed.
21+
if(NOT CMAKE_INSTALL_COMPONENT)
22+
if(COMPONENT)
23+
message(STATUS "Install component: \"${COMPONENT}\"")
24+
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
25+
else()
26+
set(CMAKE_INSTALL_COMPONENT)
27+
endif()
28+
endif()
29+
30+
# Install shared libraries without execute permission?
31+
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
32+
set(CMAKE_INSTALL_SO_NO_EXE "1")
33+
endif()
34+

0 commit comments

Comments
 (0)