From aa796a9fc06dc1817b99355a333d2b0edce7215b Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Wed, 19 Feb 2014 09:11:59 -0300 Subject: CppTools: Add all diagnostic messages ...of type 'No such file or directory' to the CPlusPlus::Document. Only the first one was added and as a result, the editor only wavely underlined that one. Add also diagnostic messages if it's not possible to get the file contents. Change-Id: I8389d8e6af9480ea6712759ce5e130e1dd8912f1 Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cpppreprocessor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpppreprocessor.h') diff --git a/src/plugins/cpptools/cpppreprocessor.h b/src/plugins/cpptools/cpppreprocessor.h index 40a9509701..f8b076be8a 100644 --- a/src/plugins/cpptools/cpppreprocessor.h +++ b/src/plugins/cpptools/cpppreprocessor.h @@ -55,7 +55,8 @@ public: protected: CPlusPlus::Document::Ptr switchDocument(CPlusPlus::Document::Ptr doc); - void getFileContents(const QString &absoluteFilePath, QByteArray *contents, unsigned *revision) const; + bool getFileContents(const QString &absoluteFilePath, QByteArray *contents, + unsigned *revision) const; bool checkFile(const QString &absoluteFilePath) const; QString resolveFile(const QString &fileName, IncludeType type); QString resolveFile_helper(const QString &fileName, IncludeType type); -- cgit v1.2.1