[PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
    Björn Schäpers via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Feb  1 12:23:08 PST 2022
    
        - Previous message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
 
        - Next message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
    
  
HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added a comment.
What the fuck. I know of trigraphs, and that we got rid of them, but these...
================
Comment at: clang/lib/Format/Format.cpp:3246
+  // Turning on digraphs in standards before C++0x is error-prone, because e.g.
+  // the sequence "<::" will be inconditionally treated as "[:".
+  // Cf. Lexer::LexTokenInternal.
----------------
owenpan wrote:
> “unconditionally”?
yeah
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118706/new/
https://reviews.llvm.org/D118706
    
    
        
	- Previous message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
 
	- Next message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
More information about the cfe-commits
mailing list