diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-05-25 12:56:26 +0000 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-05-25 12:56:26 +0000 |
commit | b4670fc77717f791bdf01ad78ff72d9c7acef9ac (patch) | |
tree | ade5ca3199ef34f43fc094e6f0d6b3c1f564bfd7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0155bf0da9b9bca2aa321510c5472fd78c5831a7 (diff) | |
download | bcm5719-llvm-b4670fc77717f791bdf01ad78ff72d9c7acef9ac.tar.gz bcm5719-llvm-b4670fc77717f791bdf01ad78ff72d9c7acef9ac.zip |
Optionally add code completion results for arrow instead of dot
Currently getting such completions requires source correction, reparsing
and calling completion again. And if it shows no results and rollback is
required then it costs one more reparse.
With this change it's possible to get all results which can be later
filtered to split changes which require correction.
Differential Revision: https://reviews.llvm.org/D41537
llvm-svn: 333272
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 45822a07165..29115c2f6d9 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1536,6 +1536,8 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, = !Args.hasArg(OPT_no_code_completion_ns_level_decls); Opts.CodeCompleteOpts.IncludeBriefComments = Args.hasArg(OPT_code_completion_brief_comments); + Opts.CodeCompleteOpts.IncludeFixIts + = Args.hasArg(OPT_code_completion_with_fixits); Opts.OverrideRecordLayoutsFile = Args.getLastArgValue(OPT_foverride_record_layout_EQ); |