njames93 added inline comments.

================
Comment at: clang-tools-extra/clang-tidy/utils/IncludeInserter.cpp:98-103
+  assert(SourceMgr && "SourceMgr shouldn't be null; did you remember to call "
+                      "registerPreprocessor()?");
+  bool IsAngled = Header.consume_front("<");
+  if (IsAngled != Header.consume_back(">"))
+    return llvm::None;
+  return createIncludeInsertion(SourceMgr->getMainFileID(), Header, IsAngled);
----------------
To save duplication could this not just dispatch to 
`createIncludeInsertion(FileID, StringRef)`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85666/new/

https://reviews.llvm.org/D85666

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

Reply via email to