[PATCH] D148216: Add support for annotations in UpdateTestChecks (NFC)

Henrik G Olsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 04:50:03 PDT 2023


hnrklssn created this revision.
Herald added subscribers: luismarques, arichardson.
Herald added a project: All.
hnrklssn requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This prevents update_cc_tests.py from emitting hard-coded identifiers
for annotations.

rdar://105239218


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148216

Files:
  llvm/utils/UpdateTestChecks/common.py


Index: llvm/utils/UpdateTestChecks/common.py
===================================================================
--- llvm/utils/UpdateTestChecks/common.py
+++ llvm/utils/UpdateTestChecks/common.py
@@ -763,6 +763,7 @@
     NamelessValue(r'TMP'        , '%' , r'%'                   , r'[\w$.-]+?'           , None                 ) ,
     NamelessValue(r'ATTR'       , '#' , r'#'                   , r'[0-9]+'              , None                 ) ,
     NamelessValue(r'ATTR'       , '#' , r'attributes #'        , r'[0-9]+'              , r'{[^}]*}'           ) ,
+    NamelessValue(r'ANNOT'      , '!' , r'!annotation '        , r'![0-9]+'             , None                 ) ,
     NamelessValue(r'GLOB'       , '@' , r'@'                   , r'[0-9]+'              , None                 ) ,
     NamelessValue(r'GLOB'       , '@' , r'@'                   , r'[a-zA-Z0-9_$"\\.-]+' , r'.+'                , is_before_functions=True)  ,
     NamelessValue(r'DBG'        , '!' , r'!dbg '               , r'![0-9]+'             , None                 ) ,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148216.513175.patch
Type: text/x-patch
Size: 1056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230413/32a59e97/attachment.bin>


More information about the llvm-commits mailing list