-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The code is split into multiple modules 1. cppast: contains code to represent the AST of C++. 2. cppparser: the code that produces cppast objects after parsing C++ file. 3. cppcodegen: creates C++ code from given cppast objects. A new and improved design is used: - no more direct access to data members of ast classes. - use of class instead of struct. - better modeling of ast.
- Loading branch information
1 parent
f9a4cfa
commit cfe6bf1
Showing
7,515 changed files
with
12,821 additions
and
22,370 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (C) 2022 Satya Das and CppParser contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
Checks: '-*,readability-identifier-naming' | ||
|
||
CheckOptions: | ||
- { key: readability-identifier-naming.ClassCase, value: CamelCase } | ||
- { key: readability-identifier-naming.MethodCase, value: camelCase } | ||
- { key: readability-identifier-naming.FunctionCase, value: CamelCase } | ||
- { key: readability-identifier-naming.GlobalFunctionCase, value: CamelCase } | ||
- { key: readability-identifier-naming.VariableCase, value: camelBack } | ||
- { key: readability-identifier-naming.ParameterCase, value: camelBack } | ||
- { key: readability-identifier-naming.GlobalConstantCase, value: camelBack } | ||
- { key: readability-identifier-naming.StaticConstantCase, value: camelBack } | ||
- { key: readability-identifier-naming.ConstexprVariableCase, value: camelBack } | ||
|
||
HeaderFilterRegex: '.*\.h' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Coding Style and Guidelines | ||
|
||
- All data members must be private. | ||
- Prefer class over struct unless it is truly a data collection without methods. | ||
- No Get or Set prefix in method names. E.g. prefer 2 overoads of owner() instead of getOwner() and setOwner(). | ||
- Mostly one class per file. | ||
- No Raw pointer. In general try to use modern C++ types, styles and idioms. | ||
- No full copyright message in each file, rather a 2 line stuf. | ||
- Do not return const reference of unique_ptr, prefer OptionalReference instead. |
Oops, something went wrong.