[PATCH] D25311: Add FixItHint for missing #include (err_module_unimported_use_header)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 19 14:27:22 PDT 2016


bruno added a comment.

Thanks for looking into this. It's a nice FixIt to have.

I don't see any dep cycle; clangFormat depends on clangToolingCore, which also depends clangRewrite, which means there are going to be 3 new dependencies for libSema in the end: clangToolingCore, clangRewrite and clangFormat.

I don't know the history behind the desired dependencies, I'll let others comment whether this is OK, but my guess it that it depends on the tradeoff, it's hard to justify 3 new deps for a change that is supposed to be simple. How hard is to implement this without using libFormat?



================
Comment at: lib/Sema/SemaLookup.cpp:39
 #include "clang/Sema/TypoCorrection.h"
+#include "clang/Tooling/Core/Replacement.h"
 #include "llvm/ADT/STLExtras.h"
----------------
You also want clangToolingCore to be listed as a explicit dep since you're including from it.


https://reviews.llvm.org/D25311





More information about the cfe-commits mailing list