[clang] [clang] Output location info in separate fields for -ftime-trace (PR #106277)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 29 05:30:58 PDT 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 35dfe8013c2e100ffa159ca183430422a370d3a4 fd9f5218e72d0d9b4d4b248383179f6dea01a5c6 --extensions cpp,h -- clang/include/clang/Basic/SourceManager.h clang/lib/AST/ExprConstant.cpp clang/lib/Basic/SourceManager.cpp clang/lib/Parse/Parser.cpp clang/lib/Sema/SemaTemplateInstantiate.cpp clang/lib/Sema/SemaTemplateInstantiateDecl.cpp clang/test/Driver/check-time-trace-ParseDeclarationOrFunctionDefinition.cpp clang/unittests/Support/TimeProfilerTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 9087572d0c..cc7605538b 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -673,7 +673,8 @@ namespace {
};
// A shorthand time trace scope struct, prints source range, for example
- // {"name":"EvaluateAsRValue","args":{"detail":"test.cc", "line":8, "col":21"}}}
+ // {"name":"EvaluateAsRValue","args":{"detail":"test.cc", "line":8,
+ // "col":21"}}}
class ExprTimeTraceScope {
public:
ExprTimeTraceScope(const Expr *E, const ASTContext &Ctx, StringRef Name)
``````````
</details>
https://github.com/llvm/llvm-project/pull/106277
More information about the cfe-commits
mailing list