[clang] Add `EvalASTMutator` interface (PR #115168)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 6 07:18:37 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 05b6c2e4b933e7a3606899c72067c92b6077287b 548298c8e2d1030b5d4edb8b548609b55aeba7f0 --extensions h,cpp -- clang/test/SemaCXX/constexpr-function-instantiation.cpp clang/include/clang/AST/ASTContext.h clang/include/clang/AST/Decl.h clang/include/clang/AST/Expr.h clang/include/clang/Sema/Sema.h clang/lib/AST/ASTContext.cpp clang/lib/AST/Decl.cpp clang/lib/AST/ExprConstant.cpp clang/lib/Sema/Sema.cpp clang/lib/Sema/SemaDecl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 61114b7107..5c44d35800 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -358,9 +358,10 @@ struct SkipBodyInfo {
struct SemaASTMutator : EvalASTMutator {
Sema &SemaRef;
SemaASTMutator(Sema &SemaRef);
- void InstantiateFunctionDefinition(
- SourceLocation PointOfInstantiation, FunctionDecl *Function,
- bool Recursive, bool DefinitionRequired, bool AtEndOfTU) override;
+ void InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
+ FunctionDecl *Function, bool Recursive,
+ bool DefinitionRequired,
+ bool AtEndOfTU) override;
};
/// Describes the result of template argument deduction.
``````````
</details>
https://github.com/llvm/llvm-project/pull/115168
More information about the cfe-commits
mailing list