This patch does not change any functionality.
Renaming of functions in LLParser.cpp/LLParser.h is done to satisfy coding style.
This was needed while D89218 was done. clang-tidy was unhappy over newly added function LLParser::ParseDIGenericSubrange.
/mnt/disks/ssd0/agent/llvm-project/llvm/lib/AsmParser/LLParser.cpp:4599:16: warning: invalid case style for function 'ParseDIGenericSubrange' [readability-identifier-naming]
bool LLParser::ParseDIGenericSubrange(MDNode *&Result, bool IsDistinct) {
^~~~~~~~~~~~~~~~~~~~~~
parseDiGenericSubrange
This function is implicitly defined using macro as
#define HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS) \
if (Lex.getStrVal() == #CLASS) \ return Parse##CLASS(N, IsDistinct);
#include "llvm/IR/Metadata.def"
Change here requires changes at other places as well.
clang-format: please reformat the code
- - bool error(LocTy L, const Twine &Msg) const { - return Lex.Error(L, Msg); - } - bool tokError(const Twine &Msg) const { - return error(Lex.getLoc(), Msg); - } + bool error(LocTy L, const Twine &Msg) const { return Lex.Error(L, Msg); } + bool tokError(const Twine &Msg) const { return error(Lex.getLoc(), Msg); }