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 f739aa4004165dc64d3a1f418d5ad3c84886f01a de364d896b24ea782b42e97fe76f71ebdbeaaa9e --extensions cpp,h -- clang/include/clang/Parse/ParseHLSLRootSignature.h clang/lib/Parse/ParseHLSLRootSignature.cpp clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/include/clang/Parse/ParseHLSLRootSignature.h b/clang/include/clang/Parse/ParseHLSLRootSignature.h index 31529b0c03..15898f8c24 100644 --- a/clang/include/clang/Parse/ParseHLSLRootSignature.h +++ b/clang/include/clang/Parse/ParseHLSLRootSignature.h @@ -41,7 +41,8 @@ struct RootSignatureToken { // Constructors RootSignatureToken() : TokLoc(SourceLocation()) {} RootSignatureToken(clang::SourceLocation TokLoc) : TokLoc(TokLoc) {} - RootSignatureToken(enum Kind Kind, clang::SourceLocation TokLoc) : Kind(Kind), TokLoc(TokLoc) {} + RootSignatureToken(enum Kind Kind, clang::SourceLocation TokLoc) + : Kind(Kind), TokLoc(TokLoc) {} }; using TokenKind = enum RootSignatureToken::Kind; diff --git a/clang/lib/Parse/ParseHLSLRootSignature.cpp b/clang/lib/Parse/ParseHLSLRootSignature.cpp index 88d892dd43..84905674df 100644 --- a/clang/lib/Parse/ParseHLSLRootSignature.cpp +++ b/clang/lib/Parse/ParseHLSLRootSignature.cpp @@ -165,7 +165,8 @@ bool RootSignatureLexer::ConsumeToken() { // This will be implicity be true if NextToken->Kind == end_of_stream if (EndOfBuffer()) { // Report unexpected end of tokens error - PP.getDiagnostics().Report(SourceLoc, diag::err_hlsl_rootsig_unexpected_eos); + PP.getDiagnostics().Report(SourceLoc, + diag::err_hlsl_rootsig_unexpected_eos); return true; } `````````` </details> https://github.com/llvm/llvm-project/pull/122981 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits