[PATCH] D139446: [clangd] Add flag to control #import include insertions

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 4 23:58:41 PST 2023


kadircet accepted this revision.
kadircet added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang-tools-extra/clangd/tool/ClangdMain.cpp:271
+    desc("If header insertion is enabled, add #import directives when "
+         "accepting code completions in Objective-C code"),
+    init(false),
----------------
... accepting code completions or fixing includes in Objective-C code.


================
Comment at: clang-tools-extra/clangd/tool/ClangdMain.cpp:272
+         "accepting code completions in Objective-C code"),
+    init(false),
+};
----------------
s/false/CodeCompleteOptions().ImportInsertions/


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139446



More information about the cfe-commits mailing list