-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used clang-tidy to clean up parts of the sst codebase.
- Loading branch information
Showing
34 changed files
with
144 additions
and
8,917 deletions.
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,16 @@ | ||
Checks: '-*,clang-diagnostic-*,misc-*,-misc-non-private-member-variables-in-classes,-misc-unused-parameters,readability-identifier-naming,readability-braces-around-statements,readability-redundant-string-cstr,readability-redundant-string-init,readability-misleading-indentation,readability-inconsistent-declaration-parameter-name,performance-*,modernize-use-override,modernize-use-nullptr,bugprone-*' | ||
CheckOptions: | ||
- key: readability-identifier-naming.ClassCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ClassMethodCase | ||
value: camelBack | ||
- key: readability-identifier-naming.EnumCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.FunctionCase | ||
value: camelBack | ||
- key: readability-identifier-naming.MemberSuffix | ||
value: _ | ||
- key: readability-identifier-naming.UnionCase | ||
value: CamelCase | ||
- key: readability-braces-around-statements | ||
value: 0 |
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
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 |
---|---|---|
|
@@ -46,6 +46,8 @@ Questions? Contact [email protected] | |
#define bin_clang_util_h | ||
|
||
#include "clangHeaders.h" | ||
#include <clangtidymacros.h> | ||
|
||
#include <iostream> | ||
|
||
struct PrettyPrinter | ||
|
@@ -95,19 +97,27 @@ struct PrettyPrinter | |
bool isCxx(const std::string& filename); | ||
bool isValidSrc(const std::string& filename); | ||
|
||
CLANG_ANALYZER_NO_RETURN | ||
void internalError(const std::string& error); | ||
|
||
CLANG_ANALYZER_NO_RETURN | ||
void internalError(clang::SourceLocation loc, clang::CompilerInstance& CI, const std::string& error); | ||
CLANG_ANALYZER_NO_RETURN | ||
void errorAbort(clang::SourceLocation loc, clang::CompilerInstance& CI, const std::string& error); | ||
|
||
void warn(clang::SourceLocation loc, clang::CompilerInstance& CI, const std::string& warning); | ||
|
||
void warn(const clang::Stmt* s, clang::CompilerInstance& CI, const std::string& error); | ||
void warn(const clang::Decl* decl, clang::CompilerInstance& CI, const std::string& error); | ||
|
||
CLANG_ANALYZER_NO_RETURN | ||
void errorAbort(const clang::Stmt* s, clang::CompilerInstance& CI, const std::string& error); | ||
CLANG_ANALYZER_NO_RETURN | ||
void errorAbort(const clang::Decl* decl, clang::CompilerInstance& CI, const std::string& error); | ||
|
||
CLANG_ANALYZER_NO_RETURN | ||
void internalError(const clang::Stmt* s, clang::CompilerInstance& CI, const std::string& error); | ||
CLANG_ANALYZER_NO_RETURN | ||
void internalError(const clang::Decl* decl, clang::CompilerInstance& CI, const std::string& error); | ||
|
||
void insertBefore(const clang::Stmt* s, clang::Rewriter& r, const std::string& text); | ||
|
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,13 @@ | ||
# | ||
# This file is part of SST/macroscale: | ||
# The macroscale architecture simulator from the SST suite. | ||
# Copyright (c) 2009-2018 NTESS. | ||
# This software is distributed under the BSD License. | ||
# Under the terms of Contract DE-NA0003525 with NTESS, | ||
# the U.S. Government retains certain rights in this software. | ||
# For more information, see the LICENSE file in the top | ||
# SST/macroscale directory. | ||
# | ||
|
||
library_includedir=$(includedir) | ||
nobase_library_include_HEADERS = clangtidymacros.h |
Oops, something went wrong.