summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor')
-rw-r--r--src/plugins/cppeditor/cppautocompleter.h5
-rw-r--r--src/plugins/cppeditor/cppcanonicalsymbol.h5
-rw-r--r--src/plugins/cppeditor/cppcodemodelinspectordialog.h5
-rw-r--r--src/plugins/cppeditor/cppdocumentationcommenthelper.h5
-rw-r--r--src/plugins/cppeditor/cppdoxygen_test.h5
-rw-r--r--src/plugins/cppeditor/cppeditor.h5
-rw-r--r--src/plugins/cppeditor/cppeditor_global.h5
-rw-r--r--src/plugins/cppeditor/cppeditorconstants.h5
-rw-r--r--src/plugins/cppeditor/cppeditordocument.h5
-rw-r--r--src/plugins/cppeditor/cppeditorenums.h5
-rw-r--r--src/plugins/cppeditor/cppeditorplugin.h5
-rw-r--r--src/plugins/cppeditor/cppeditortestcase.h5
-rw-r--r--src/plugins/cppeditor/cppelementevaluator.h5
-rw-r--r--src/plugins/cppeditor/cppfollowsymbolundercursor.h5
-rw-r--r--src/plugins/cppeditor/cppfunctiondecldeflink.h5
-rw-r--r--src/plugins/cppeditor/cpphighlighter.h5
-rw-r--r--src/plugins/cppeditor/cpphoverhandler.h5
-rw-r--r--src/plugins/cppeditor/cppincludehierarchy.h5
-rw-r--r--src/plugins/cppeditor/cppincludehierarchyitem.h5
-rw-r--r--src/plugins/cppeditor/cppincludehierarchymodel.h5
-rw-r--r--src/plugins/cppeditor/cppincludehierarchytreeview.h5
-rw-r--r--src/plugins/cppeditor/cppinsertvirtualmethods.h5
-rw-r--r--src/plugins/cppeditor/cppoutline.h5
-rw-r--r--src/plugins/cppeditor/cpppreprocessordialog.h5
-rw-r--r--src/plugins/cppeditor/cppquickfix.h5
-rw-r--r--src/plugins/cppeditor/cppquickfixassistant.h5
-rw-r--r--src/plugins/cppeditor/cppquickfixes.h5
-rw-r--r--src/plugins/cppeditor/cppsnippetprovider.h5
-rw-r--r--src/plugins/cppeditor/cpptypehierarchy.h5
-rw-r--r--src/plugins/cppeditor/cppuseselectionsupdater.h5
-rw-r--r--src/plugins/cppeditor/cppvirtualfunctionassistprovider.h5
-rw-r--r--src/plugins/cppeditor/cppvirtualfunctionproposalitem.h5
32 files changed, 32 insertions, 128 deletions
diff --git a/src/plugins/cppeditor/cppautocompleter.h b/src/plugins/cppeditor/cppautocompleter.h
index 9df35f1330..d58acda608 100644
--- a/src/plugins/cppeditor/cppautocompleter.h
+++ b/src/plugins/cppeditor/cppautocompleter.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPAUTOCOMPLETER_H
-#define CPPAUTOCOMPLETER_H
+#pragma once
#include <texteditor/autocompleter.h>
@@ -50,5 +49,3 @@ public:
} // Internal
} // CppEditor
-
-#endif // CPPAUTOCOMPLETER_H
diff --git a/src/plugins/cppeditor/cppcanonicalsymbol.h b/src/plugins/cppeditor/cppcanonicalsymbol.h
index aca83a387a..293859e9a5 100644
--- a/src/plugins/cppeditor/cppcanonicalsymbol.h
+++ b/src/plugins/cppeditor/cppcanonicalsymbol.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPCANONICALSYMBOL_H
-#define CPPCANONICALSYMBOL_H
+#pragma once
#include <cplusplus/LookupContext.h>
#include <cplusplus/Symbol.h>
@@ -61,5 +60,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPCANONICALSYMBOL_H
diff --git a/src/plugins/cppeditor/cppcodemodelinspectordialog.h b/src/plugins/cppeditor/cppcodemodelinspectordialog.h
index bbb8d35810..ca17d960ba 100644
--- a/src/plugins/cppeditor/cppcodemodelinspectordialog.h
+++ b/src/plugins/cppeditor/cppcodemodelinspectordialog.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPCODEMODELINSPECTORDIALOG_H
-#define CPPCODEMODELINSPECTORDIALOG_H
+#pragma once
#include <cpptools/cppmodelmanager.h>
@@ -121,5 +120,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPCODEMODELINSPECTORDIALOG_H
diff --git a/src/plugins/cppeditor/cppdocumentationcommenthelper.h b/src/plugins/cppeditor/cppdocumentationcommenthelper.h
index f384968965..af864b1bfc 100644
--- a/src/plugins/cppeditor/cppdocumentationcommenthelper.h
+++ b/src/plugins/cppeditor/cppdocumentationcommenthelper.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPDOCUMENTATIONCOMMENTHELPER_H
-#define CPPDOCUMENTATIONCOMMENTHELPER_H
+#pragma once
#include "cppeditor_global.h"
@@ -39,5 +38,3 @@ bool trySplitComment(TextEditor::TextEditorWidget *editorWidget,
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPDOCUMENTATIONCOMMENTHELPER_H
diff --git a/src/plugins/cppeditor/cppdoxygen_test.h b/src/plugins/cppeditor/cppdoxygen_test.h
index 68f6b2509a..99af70ce0f 100644
--- a/src/plugins/cppeditor/cppdoxygen_test.h
+++ b/src/plugins/cppeditor/cppdoxygen_test.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPDOXYGEN_TEST_H
-#define CPPDOXYGEN_TEST_H
+#pragma once
#include "cppeditortestcase.h"
@@ -68,5 +67,3 @@ private:
} // namespace Tests
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPDOXYGEN_TEST_H
diff --git a/src/plugins/cppeditor/cppeditor.h b/src/plugins/cppeditor/cppeditor.h
index 8b74d74d40..8317ebfd91 100644
--- a/src/plugins/cppeditor/cppeditor.h
+++ b/src/plugins/cppeditor/cppeditor.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPEDITOR_H
-#define CPPEDITOR_H
+#pragma once
#include "cppfunctiondecldeflink.h"
@@ -145,5 +144,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPEDITOR_H
diff --git a/src/plugins/cppeditor/cppeditor_global.h b/src/plugins/cppeditor/cppeditor_global.h
index 4491614d7c..df1a19f39e 100644
--- a/src/plugins/cppeditor/cppeditor_global.h
+++ b/src/plugins/cppeditor/cppeditor_global.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPEDITOR_GLOBAL_H
-#define CPPEDITOR_GLOBAL_H
+#pragma once
#include <qglobal.h>
@@ -33,5 +32,3 @@
#else
# define CPPEDITOR_EXPORT Q_DECL_IMPORT
#endif
-
-#endif // CPPEDITOR_GLOBAL_H
diff --git a/src/plugins/cppeditor/cppeditorconstants.h b/src/plugins/cppeditor/cppeditorconstants.h
index 417a637351..1d72be7a7a 100644
--- a/src/plugins/cppeditor/cppeditorconstants.h
+++ b/src/plugins/cppeditor/cppeditorconstants.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPEDITORCONSTANTS_H
-#define CPPEDITORCONSTANTS_H
+#pragma once
namespace CppEditor {
namespace Constants {
@@ -53,5 +52,3 @@ const char CPP_PREPROCESSOR_PROJECT_PREFIX[] = "CppPreprocessorProject-";
} // namespace Constants
} // namespace CppEditor
-
-#endif // CPPEDITORCONSTANTS_H
diff --git a/src/plugins/cppeditor/cppeditordocument.h b/src/plugins/cppeditor/cppeditordocument.h
index c932aa1389..61185f9738 100644
--- a/src/plugins/cppeditor/cppeditordocument.h
+++ b/src/plugins/cppeditor/cppeditordocument.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPEDITORDOCUMENT_H
-#define CPPEDITORDOCUMENT_H
+#pragma once
#include <cpptools/baseeditordocumentprocessor.h>
#include <cpptools/cppcompletionassistprovider.h>
@@ -119,5 +118,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPEDITORDOCUMENT_H
diff --git a/src/plugins/cppeditor/cppeditorenums.h b/src/plugins/cppeditor/cppeditorenums.h
index 6437f38fc8..909073c3ee 100644
--- a/src/plugins/cppeditor/cppeditorenums.h
+++ b/src/plugins/cppeditor/cppeditorenums.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPEDITORENUMS_H
-#define CPPEDITORENUMS_H
+#pragma once
namespace CppEditor {
namespace Internal {
@@ -52,5 +51,3 @@ enum CppFormats {
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPEDITORENUMS_H
diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h
index 7c36b2ee7c..935de13e33 100644
--- a/src/plugins/cppeditor/cppeditorplugin.h
+++ b/src/plugins/cppeditor/cppeditorplugin.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPEDITORPLUGIN_H
-#define CPPEDITORPLUGIN_H
+#pragma once
#include <coreplugin/editormanager/ieditorfactory.h>
@@ -252,5 +251,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPEDITORPLUGIN_H
diff --git a/src/plugins/cppeditor/cppeditortestcase.h b/src/plugins/cppeditor/cppeditortestcase.h
index 4b4239c295..dafca4ec14 100644
--- a/src/plugins/cppeditor/cppeditortestcase.h
+++ b/src/plugins/cppeditor/cppeditortestcase.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPEDITORTESTCASE_H
-#define CPPEDITORTESTCASE_H
+#pragma once
#include "cppeditor.h"
@@ -76,5 +75,3 @@ public:
} // namespace Tests
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPEDITORTESTCASE_H
diff --git a/src/plugins/cppeditor/cppelementevaluator.h b/src/plugins/cppeditor/cppelementevaluator.h
index a528148350..ffc6bd760a 100644
--- a/src/plugins/cppeditor/cppelementevaluator.h
+++ b/src/plugins/cppeditor/cppelementevaluator.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPELEMENTEVALUATOR_H
-#define CPPELEMENTEVALUATOR_H
+#pragma once
#include <texteditor/texteditor.h>
#include <texteditor/helpitem.h>
@@ -193,5 +192,3 @@ public:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPELEMENTEVALUATOR_H
diff --git a/src/plugins/cppeditor/cppfollowsymbolundercursor.h b/src/plugins/cppeditor/cppfollowsymbolundercursor.h
index bedea8f4d9..3121fe00e8 100644
--- a/src/plugins/cppeditor/cppfollowsymbolundercursor.h
+++ b/src/plugins/cppeditor/cppfollowsymbolundercursor.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPFOLLOWSYMBOLUNDERCURSOR_H
-#define CPPFOLLOWSYMBOLUNDERCURSOR_H
+#pragma once
#include <cplusplus/CppDocument.h>
#include <texteditor/texteditor.h>
@@ -64,5 +63,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPFOLLOWSYMBOLUNDERCURSOR_H
diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.h b/src/plugins/cppeditor/cppfunctiondecldeflink.h
index ec866c551f..03c1992271 100644
--- a/src/plugins/cppeditor/cppfunctiondecldeflink.h
+++ b/src/plugins/cppeditor/cppfunctiondecldeflink.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPFUNCTIONDECLDEFLINK_H
-#define CPPFUNCTIONDECLDEFLINK_H
+#pragma once
#include "cppquickfix.h"
@@ -118,5 +117,3 @@ private:
} // namespace CppEditor
Q_DECLARE_METATYPE(CppEditor::Internal::FunctionDeclDefLink::Marker)
-
-#endif // CPPFUNCTIONDECLDEFLINK_H
diff --git a/src/plugins/cppeditor/cpphighlighter.h b/src/plugins/cppeditor/cpphighlighter.h
index b7da0c14be..fd9ba578a5 100644
--- a/src/plugins/cppeditor/cpphighlighter.h
+++ b/src/plugins/cppeditor/cpphighlighter.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPHIGHLIGHTER_H
-#define CPPHIGHLIGHTER_H
+#pragma once
#include <texteditor/syntaxhighlighter.h>
@@ -58,5 +57,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPHIGHLIGHTER_H
diff --git a/src/plugins/cppeditor/cpphoverhandler.h b/src/plugins/cppeditor/cpphoverhandler.h
index 7562f42e25..accc275152 100644
--- a/src/plugins/cppeditor/cpphoverhandler.h
+++ b/src/plugins/cppeditor/cpphoverhandler.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPHOVERHANDLER_H
-#define CPPHOVERHANDLER_H
+#pragma once
#include <texteditor/basehoverhandler.h>
@@ -44,5 +43,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPHOVERHANDLER_H
diff --git a/src/plugins/cppeditor/cppincludehierarchy.h b/src/plugins/cppeditor/cppincludehierarchy.h
index ba50706033..9ae1efdaf8 100644
--- a/src/plugins/cppeditor/cppincludehierarchy.h
+++ b/src/plugins/cppeditor/cppincludehierarchy.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPINCLUDEHIERARCHY_H
-#define CPPINCLUDEHIERARCHY_H
+#pragma once
#include <coreplugin/inavigationwidgetfactory.h>
@@ -111,5 +110,3 @@ public:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPINCLUDEHIERARCHY_H
diff --git a/src/plugins/cppeditor/cppincludehierarchyitem.h b/src/plugins/cppeditor/cppincludehierarchyitem.h
index 8723be14b2..f7cd897dab 100644
--- a/src/plugins/cppeditor/cppincludehierarchyitem.h
+++ b/src/plugins/cppeditor/cppincludehierarchyitem.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPINCLUDEHIERARCHYITEM_H
-#define CPPINCLUDEHIERARCHYITEM_H
+#pragma once
#include <QList>
#include <QString>
@@ -67,5 +66,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPINCLUDEHIERARCHYITEM_H
diff --git a/src/plugins/cppeditor/cppincludehierarchymodel.h b/src/plugins/cppeditor/cppincludehierarchymodel.h
index 35f96ac7b3..2bc80bcb12 100644
--- a/src/plugins/cppeditor/cppincludehierarchymodel.h
+++ b/src/plugins/cppeditor/cppincludehierarchymodel.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPINCLUDEHIERARCHYMODEL_H
-#define CPPINCLUDEHIERARCHYMODEL_H
+#pragma once
#include <QAbstractItemModel>
@@ -89,5 +88,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPINCLUDEHIERARCHYMODEL_H
diff --git a/src/plugins/cppeditor/cppincludehierarchytreeview.h b/src/plugins/cppeditor/cppincludehierarchytreeview.h
index 06b53708cf..083b6f1614 100644
--- a/src/plugins/cppeditor/cppincludehierarchytreeview.h
+++ b/src/plugins/cppeditor/cppincludehierarchytreeview.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPINCLUDEHIERARCHYTREEVIEW_H
-#define CPPINCLUDEHIERARCHYTREEVIEW_H
+#pragma once
#include <utils/navigationtreeview.h>
@@ -41,5 +40,3 @@ protected:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPINCLUDEHIERARCHYTREEVIEW_H
diff --git a/src/plugins/cppeditor/cppinsertvirtualmethods.h b/src/plugins/cppeditor/cppinsertvirtualmethods.h
index ea5d2ee1fb..cc48fede93 100644
--- a/src/plugins/cppeditor/cppinsertvirtualmethods.h
+++ b/src/plugins/cppeditor/cppinsertvirtualmethods.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef INSERTVIRTUALMETHODS_H
-#define INSERTVIRTUALMETHODS_H
+#pragma once
#include "cppquickfix.h"
@@ -50,5 +49,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // INSERTVIRTUALMETHODS_H
diff --git a/src/plugins/cppeditor/cppoutline.h b/src/plugins/cppeditor/cppoutline.h
index 573d559bb5..fdc8671639 100644
--- a/src/plugins/cppeditor/cppoutline.h
+++ b/src/plugins/cppeditor/cppoutline.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPOUTLINE_H
-#define CPPOUTLINE_H
+#pragma once
#include "cppeditor.h"
@@ -100,5 +99,3 @@ public:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPOUTLINE_H
diff --git a/src/plugins/cppeditor/cpppreprocessordialog.h b/src/plugins/cppeditor/cpppreprocessordialog.h
index 470a2ad93a..bce7f4e343 100644
--- a/src/plugins/cppeditor/cpppreprocessordialog.h
+++ b/src/plugins/cppeditor/cpppreprocessordialog.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPPREPROCESSORDIALOG_H
-#define CPPPREPROCESSORDIALOG_H
+#pragma once
#include <cpptools/cppmodelmanager.h>
@@ -65,5 +64,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPPREPROCESSORDIALOG_H
diff --git a/src/plugins/cppeditor/cppquickfix.h b/src/plugins/cppeditor/cppquickfix.h
index 38b5fe3468..02c63534c7 100644
--- a/src/plugins/cppeditor/cppquickfix.h
+++ b/src/plugins/cppeditor/cppquickfix.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPQUICKFIX_H
-#define CPPQUICKFIX_H
+#pragma once
#include "cppeditor_global.h"
#include "cppquickfixassistant.h"
@@ -64,5 +63,3 @@ public:
};
} // namespace CppEditor
-
-#endif // CPPQUICKFIX_H
diff --git a/src/plugins/cppeditor/cppquickfixassistant.h b/src/plugins/cppeditor/cppquickfixassistant.h
index 8da6b1da6a..96c259aab4 100644
--- a/src/plugins/cppeditor/cppquickfixassistant.h
+++ b/src/plugins/cppeditor/cppquickfixassistant.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPQUICKFIXASSISTANT_H
-#define CPPQUICKFIXASSISTANT_H
+#pragma once
#include <cpptools/cppsemanticinfo.h>
#include <texteditor/codeassist/assistinterface.h>
@@ -81,5 +80,3 @@ public:
} // Internal
} // CppEditor
-
-#endif // CPPQUICKFIXASSISTANT_H
diff --git a/src/plugins/cppeditor/cppquickfixes.h b/src/plugins/cppeditor/cppquickfixes.h
index eb99e732a4..55e3a4e80c 100644
--- a/src/plugins/cppeditor/cppquickfixes.h
+++ b/src/plugins/cppeditor/cppquickfixes.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPQUICKFIXES_H
-#define CPPQUICKFIXES_H
+#pragma once
#include "cppeditor_global.h"
#include "cppquickfix.h"
@@ -567,5 +566,3 @@ public:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPQUICKFIXES_H
diff --git a/src/plugins/cppeditor/cppsnippetprovider.h b/src/plugins/cppeditor/cppsnippetprovider.h
index 361413181d..fd6d3b26bb 100644
--- a/src/plugins/cppeditor/cppsnippetprovider.h
+++ b/src/plugins/cppeditor/cppsnippetprovider.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPSNIPPETPROVIDER_H
-#define CPPSNIPPETPROVIDER_H
+#pragma once
#include <texteditor/snippets/isnippetprovider.h>
@@ -45,5 +44,3 @@ public:
} // Internal
} // CppEditor
-
-#endif // CPPSNIPPETPROVIDER_H
diff --git a/src/plugins/cppeditor/cpptypehierarchy.h b/src/plugins/cppeditor/cpptypehierarchy.h
index a9d4ac0626..861a7875b3 100644
--- a/src/plugins/cppeditor/cpptypehierarchy.h
+++ b/src/plugins/cppeditor/cpptypehierarchy.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPTYPEHIERARCHY_H
-#define CPPTYPEHIERARCHY_H
+#pragma once
#include <coreplugin/inavigationwidgetfactory.h>
@@ -111,5 +110,3 @@ public:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPTYPEHIERARCHY_H
diff --git a/src/plugins/cppeditor/cppuseselectionsupdater.h b/src/plugins/cppeditor/cppuseselectionsupdater.h
index d1bc479dc9..00f173c194 100644
--- a/src/plugins/cppeditor/cppuseselectionsupdater.h
+++ b/src/plugins/cppeditor/cppuseselectionsupdater.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPUSESELECTIONSUPDATER_H
-#define CPPUSESELECTIONSUPDATER_H
+#pragma once
#include <cpptools/cppsemanticinfo.h>
#include <texteditor/texteditorconstants.h>
@@ -114,5 +113,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPUSESELECTIONSUPDATER_H
diff --git a/src/plugins/cppeditor/cppvirtualfunctionassistprovider.h b/src/plugins/cppeditor/cppvirtualfunctionassistprovider.h
index 11c67de2a4..5a930530b5 100644
--- a/src/plugins/cppeditor/cppvirtualfunctionassistprovider.h
+++ b/src/plugins/cppeditor/cppvirtualfunctionassistprovider.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPFOLLOWVIRTUALSYMBOLS_H
-#define CPPFOLLOWVIRTUALSYMBOLS_H
+#pragma once
#include <texteditor/codeassist/iassistprovider.h>
@@ -68,5 +67,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPFOLLOWVIRTUALSYMBOLS_H
diff --git a/src/plugins/cppeditor/cppvirtualfunctionproposalitem.h b/src/plugins/cppeditor/cppvirtualfunctionproposalitem.h
index 5a28e1f902..5d86d4b390 100644
--- a/src/plugins/cppeditor/cppvirtualfunctionproposalitem.h
+++ b/src/plugins/cppeditor/cppvirtualfunctionproposalitem.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CPPVIRTUALFUNCTIONPROPOSALITEM_H
-#define CPPVIRTUALFUNCTIONPROPOSALITEM_H
+#pragma once
#include <texteditor/texteditor.h>
#include <texteditor/codeassist/assistproposalitem.h>
@@ -49,5 +48,3 @@ private:
} // namespace Internal
} // namespace CppEditor
-
-#endif // CPPVIRTUALFUNCTIONPROPOSALITEM_H