@@ -109,29 +109,6 @@ while IFS= read -r line; do
109109    print_message " * \` build$name ()\`  not found in \` src/lib/AST/ASTVisitor.cpp\` " 
110110  fi 
111111
112-   #  `src/lib/AST/AnyBlock.hpp` should define the `${name}Block` type
113-   #  Look for the string `${name}Block` in the file
114-   if  !  grep -q " ${name} Block"   " $MRDOCS_ROOT /src/lib/AST/AnyBlock.hpp" ;  then 
115-     print_message_once " ## ${name} Info" 
116-     print_message " * \` ${name} Block\`  not found in \` src/lib/AST/AnyBlock.hpp\` " 
117-   fi 
118- 
119-   #  `src/lib/AST/BitcodeWriter.hpp` should define `void emitBlock(X const& I);`
120-   #  Look for the string `void emitBlock(${name}Info const& I);` in the file
121-   #  When looking for the string `void emitBlock(${name}Info const& I);` in the file,
122-   #  we need to use regex to account for the following:
123-   #  1) Remove the leading and trailing spaces
124-   #  2) Consecutive spaces should be replaced with a single space
125-   #  3) Newlines should be removed
126-   #  4) The variable name `I` can be anything
127-   BITCODE_WRITE_REL_PATH=" src/lib/AST/BitcodeWriter.hpp" 
128-   BITCODE_WRITE_PATH=" $MRDOCS_ROOT /$BITCODE_WRITE_REL_PATH " 
129-   regex=" void[[:space:]]+emitBlock[[:space:]]*\(${name} Info[[:space:]]*const[[:space:]]*&[[:space:]]*[a-zA-Z_][a-zA-Z0-9_]*[[:space:]]*\);" 
130-   if  !  grep -Pzo " $regex "   " $BITCODE_WRITE_PATH "   >  /dev/null;  then 
131-     print_message_once " ## ${name} Info" 
132-     print_message " The function \` void emitBlock(${name} Info const& I);\`  is not defined in \` $BITCODE_WRITE_REL_PATH \` ." 
133-   fi 
134- 
135112  #  `src/lib/Gen/xml/XMLWriter.cpp` should define `XMLWriter::writeX()`
136113  #  Just look for the string `write$name` in this file
137114  if  !  grep -q " write$name "   " $MRDOCS_ROOT /src/lib/Gen/xml/XMLWriter.cpp" ;  then 
0 commit comments