aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/abstracteditorsupport.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-05-31 14:29:03 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2023-06-08 08:23:01 +0000
commit8e75381fce29504cd3f278f90cfcda22b9e47b4d (patch)
tree2d5f97c186e1ec6635b792f810284fb6141860bd /src/plugins/cppeditor/abstracteditorsupport.h
parent6cc325f845b1ed2df3d28271146919c158f003d3 (diff)
CppEditor: Give C++ file name settings a per-project variant
Fixes: QTCREATORBUG-22033 Change-Id: If37517bb091438e70c5af5102bf833ed46d0c951 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/abstracteditorsupport.h')
-rw-r--r--src/plugins/cppeditor/abstracteditorsupport.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/abstracteditorsupport.h b/src/plugins/cppeditor/abstracteditorsupport.h
index 2b18873238..277001e043 100644
--- a/src/plugins/cppeditor/abstracteditorsupport.h
+++ b/src/plugins/cppeditor/abstracteditorsupport.h
@@ -9,6 +9,8 @@
#include <QObject>
+namespace ProjectExplorer { class Project; }
+
namespace CppEditor {
class CppModelManager;
@@ -30,8 +32,10 @@ public:
void notifyAboutUpdatedContents() const;
unsigned revision() const { return m_revision; }
- static QString licenseTemplate(const Utils::FilePath &filePath = {}, const QString &className = {});
- static bool usePragmaOnce();
+ static QString licenseTemplate(ProjectExplorer::Project *project,
+ const Utils::FilePath &filePath = {},
+ const QString &className = {});
+ static bool usePragmaOnce(ProjectExplorer::Project *project);
private:
CppModelManager *m_modelmanager;