Skip to content

Commit 527841d

Browse files
mainly improving file names
1 parent b351400 commit 527841d

13 files changed

+1272
-1214
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ y.output
1111

1212
# Lex and yacc generated files
1313
parser.lex.cpp
14-
#parser.tab.*
14+
parser.tab.*
1515

1616
# Build results
1717

.vscode/c_cpp_properties.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"defines": [],
9+
"compilerPath": "/usr/bin/clang-5.0",
10+
"cStandard": "c11",
11+
"intelliSenseMode": "linux-clang-x64",
12+
"cppStandard": "c++17"
13+
}
14+
],
15+
"version": 4
16+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "cppconst.h"
2828
#include "cpputil.h"
2929

30-
#include "cppobj-accessor.h"
30+
#include "cppobj-info-accessor.h"
3131

3232
#include <functional>
3333

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "cppast.h"
2929
#include "cppconst.h"
3030

31-
#include "cppobj-accessor.h"
31+
#include "cppobj-info-accessor.h"
3232

3333
inline bool isConst(const CppFunctionBase* func)
3434
{

pub/cppprog.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ class CppProgram
114114
private:
115115
using CppObjToTypeNodeMap = std::map<const CppObj*, CppTypeTreeNode*>;
116116

117-
CppCompoundArray fileAsts_; ///< Array of all top level ASTs corresponding to files.
118-
CppTypeTreeNode cppTypeTreeRoot_; ///< Repository of all compound objects arranged as type-tree.
119-
mutable CppObjToTypeNodeMap cppObjToTypeNode_;
120-
CppParser parser_;
117+
CppCompoundArray fileAsts_; ///< Array of all top level ASTs corresponding to files.
118+
CppTypeTreeNode cppTypeTreeRoot_; ///< Repository of all compound objects arranged as type-tree.
119+
CppObjToTypeNodeMap cppObjToTypeNode_;
120+
CppParser parser_;
121121
};
122122

123123
inline const CppCompoundArray& CppProgram::getFileAsts() const

src/cppast.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
#include "cppast.h"
2525
#include "cpputil.h"
2626

27-
#include "cppcompound-accessor.h"
28-
#include "cppfunc-accessor.h"
29-
#include "cppobj-accessor.h"
30-
#include "cppvar-accessor.h"
27+
#include "cppcompound-info-accessor.h"
28+
#include "cppfunc-info-accessor.h"
29+
#include "cppobj-info-accessor.h"
30+
#include "cppvar-info-accessor.h"
3131

3232
bool CppConstructor::isCopyConstructor() const
3333
{

src/cppprog.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
#include "cpputil.h"
2626
#include "utils.h"
2727

28-
#include "cppcompound-accessor.h"
29-
#include "cppfunc-accessor.h"
30-
#include "cppobj-accessor.h"
31-
#include "cppvar-accessor.h"
28+
#include "cppcompound-info-accessor.h"
29+
#include "cppfunc-info-accessor.h"
30+
#include "cppobj-info-accessor.h"
31+
#include "cppvar-info-accessor.h"
3232

3333
#include <iostream>
3434

src/cppwriter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
#include "cppwriter.h"
2525
#include "cpputil.h"
2626

27-
#include "cppcompound-accessor.h"
28-
#include "cppfunc-accessor.h"
29-
#include "cppobj-accessor.h"
30-
#include "cppvar-accessor.h"
27+
#include "cppcompound-info-accessor.h"
28+
#include "cppfunc-info-accessor.h"
29+
#include "cppobj-info-accessor.h"
30+
#include "cppvar-info-accessor.h"
3131

3232
//////////////////////////////////////////////////////////////////////////
3333

0 commit comments

Comments
 (0)