alexfh added inline comments.

================
Comment at: 
clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp:1011-1015
+  if (Header.front() == '<' && Header.back() == '>') {
+    IsSystemInclude = true;
+    Header.pop_back();
+    Header.erase(0, 1);
+  }
----------------
alexfh wrote:
> It looks like this should be a feature of the `IncludeInserter`. Not 
> necessarily in this patch though. The `createIncludeInsertion` in other 
> checks could be made a bit more self-descriptive too, e.g. this one in 
> clang-tidy/modernize/MakeSmartPtrCheck.cpp:
> ```
>   Diag << Inserter.createIncludeInsertion(
>       FD, MakeSmartPtrFunctionHeader,
>       /*IsAngled=*/MakeSmartPtrFunctionHeader == StdMemoryHeader);
> ```
> could have angle brackets in `MakeSmartPtrFunctionHeader` instead of making a 
> special case for `memory`.
I've posted a patch for this for review: https://reviews.llvm.org/D85666.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82089

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

Reply via email to