[llvm-branch-commits] [clang] acbb365 - [AST][NFC] Silence GCC warning about multiline comments

Thomas Preud'homme via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 7 09:15:48 PST 2021


Author: Thomas Preud'homme
Date: 2021-01-07T17:11:49Z
New Revision: acbb3652931a735a861b756075b1cc86fd041761

URL: https://github.com/llvm/llvm-project/commit/acbb3652931a735a861b756075b1cc86fd041761
DIFF: https://github.com/llvm/llvm-project/commit/acbb3652931a735a861b756075b1cc86fd041761.diff

LOG: [AST][NFC] Silence GCC warning about multiline comments

Remove continuation line in code snippet to prevent GCC warning about
multiline comments (-Wcomment) when building a project using libclang
with GCC.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D92409

Added: 
    

Modified: 
    clang/include/clang/AST/DeclOpenMP.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/DeclOpenMP.h b/clang/include/clang/AST/DeclOpenMP.h
index e595ec98d914..4aa5bde92e12 100644
--- a/clang/include/clang/AST/DeclOpenMP.h
+++ b/clang/include/clang/AST/DeclOpenMP.h
@@ -163,7 +163,7 @@ class OMPThreadPrivateDecl final : public OMPDeclarativeDirective<Decl> {
 /// 'float':
 ///
 /// \code
-/// #pragma omp declare reduction (foo : int,float : omp_out += omp_in) \
+/// #pragma omp declare reduction (foo : int,float : omp_out += omp_in)
 ///                     initializer (omp_priv = 0)
 /// \endcode
 ///


        


More information about the llvm-branch-commits mailing list