Author: sstwcw
Date: 2022-06-25T12:09:49Z
New Revision: 1f69f7ea9af4bd4e8001a25044aa026557f366f7

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

LOG: [clang-format] NFC Sort names of format token types

Suggested by HazardyKnusperkeks in D126845.

Reviewed By: HazardyKnusperkeks, owenpan

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

Added: 
    

Modified: 
    clang/lib/Format/FormatToken.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Format/FormatToken.h b/clang/lib/Format/FormatToken.h
index 71acdf2f094ba..145ae39ddb62c 100644
--- a/clang/lib/Format/FormatToken.h
+++ b/clang/lib/Format/FormatToken.h
@@ -46,6 +46,13 @@ namespace format {
   /* l_brace of if/for/while */                                                
\
   TYPE(ControlStatementLBrace)                                                 
\
   TYPE(CppCastLParen)                                                          
\
+  TYPE(CSharpGenericTypeConstraint)                                            
\
+  TYPE(CSharpGenericTypeConstraintColon)                                       
\
+  TYPE(CSharpGenericTypeConstraintComma)                                       
\
+  TYPE(CSharpNamedArgumentColon)                                               
\
+  TYPE(CSharpNullable)                                                         
\
+  TYPE(CSharpNullConditionalLSquare)                                           
\
+  TYPE(CSharpStringLiteral)                                                    
\
   TYPE(CtorInitializerColon)                                                   
\
   TYPE(CtorInitializerComma)                                                   
\
   TYPE(DesignatedInitializerLSquare)                                           
\
@@ -68,6 +75,7 @@ namespace format {
   TYPE(InlineASMColon)                                                         
\
   TYPE(InlineASMSymbolicNameLSquare)                                           
\
   TYPE(JavaAnnotation)                                                         
\
+  TYPE(JsAndAndEqual)                                                          
\
   TYPE(JsComputedPropertyName)                                                 
\
   TYPE(JsExponentiation)                                                       
\
   TYPE(JsExponentiationEqual)                                                  
\
@@ -76,7 +84,6 @@ namespace format {
   TYPE(JsTypeColon)                                                            
\
   TYPE(JsTypeOperator)                                                         
\
   TYPE(JsTypeOptionalQuestion)                                                 
\
-  TYPE(JsAndAndEqual)                                                          
\
   TYPE(LambdaArrow)                                                            
\
   TYPE(LambdaLBrace)                                                           
\
   TYPE(LambdaLSquare)                                                          
\
@@ -101,6 +108,7 @@ namespace format {
   TYPE(OverloadedOperator)                                                     
\
   TYPE(OverloadedOperatorLParen)                                               
\
   TYPE(PointerOrReference)                                                     
\
+  TYPE(ProtoExtensionLSquare)                                                  
\
   TYPE(PureVirtualSpecifier)                                                   
\
   TYPE(RangeBasedForLoopColon)                                                 
\
   TYPE(RecordLBrace)                                                           
\
@@ -119,7 +127,6 @@ namespace format {
   TYPE(TemplateCloser)                                                         
\
   TYPE(TemplateOpener)                                                         
\
   TYPE(TemplateString)                                                         
\
-  TYPE(ProtoExtensionLSquare)                                                  
\
   TYPE(TrailingAnnotation)                                                     
\
   TYPE(TrailingReturnArrow)                                                    
\
   TYPE(TrailingUnaryOperator)                                                  
\
@@ -128,13 +135,6 @@ namespace format {
   TYPE(UnaryOperator)                                                          
\
   TYPE(UnionLBrace)                                                            
\
   TYPE(UntouchableMacroFunc)                                                   
\
-  TYPE(CSharpStringLiteral)                                                    
\
-  TYPE(CSharpNamedArgumentColon)                                               
\
-  TYPE(CSharpNullable)                                                         
\
-  TYPE(CSharpNullConditionalLSquare)                                           
\
-  TYPE(CSharpGenericTypeConstraint)                                            
\
-  TYPE(CSharpGenericTypeConstraintColon)                                       
\
-  TYPE(CSharpGenericTypeConstraintComma)                                       
\
   TYPE(Unknown)
 
 /// Determines the semantic type of a syntactic token, e.g. whether "<" is a


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to