diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-01-12 18:01:12 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-01-16 10:17:50 +0000 |
commit | e4e65726614fa4e3ee02f25db755d959850441ea (patch) | |
tree | a76a4aab899eb313f25f0da8a1f3e89ede71b67b /src/plugins/clangcodemodel/clangeditordocumentparser.cpp | |
parent | 4416eecc024e155438c7ed6399182dbff143bd0d (diff) |
CppTools: Allow interpreting ambiguous headers as C headers
...instead of C++ headers.
For the Clang Code Model this results in using "-x c-header" instead of
"-x c++-header".
This introduces a new option in Options > C++ > "Code Model" to
configure this.
Change-Id: I8a0ce8fa6155f5ef58743ebc7f1d0b500fbf6599
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangeditordocumentparser.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangeditordocumentparser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp index 1d76245dc85..33ec351b4c2 100644 --- a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp +++ b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp @@ -43,6 +43,7 @@ void ClangEditorDocumentParser::updateImpl(const QFutureInterface<void> &, configuration(), state_, updateParams.activeProject, + updateParams.languagePreference, updateParams.hasActiveProjectChanged); setState(state_); } |