Differential D11136 Diff 29096 plugins/custom-definesandincludes/compilerprovider/icompilerfactory.h
Changeset View
Changeset View
Standalone View
Standalone View
plugins/custom-definesandincludes/compilerprovider/icompilerfactory.h
Show All 38 Lines | 34 | public: | |||
---|---|---|---|---|---|
39 | virtual CompilerPointer createCompiler( const QString& name, const QString& path, bool editable = true ) const = 0; | 39 | virtual CompilerPointer createCompiler( const QString& name, const QString& path, bool editable = true ) const = 0; | ||
40 | 40 | | |||
41 | /** | 41 | /** | ||
42 | * registers default compilers for the @p provider | 42 | * registers default compilers for the @p provider | ||
43 | * E.g. for gcc default compilers could be "gcc c99" and "gcc c++11" | 43 | * E.g. for gcc default compilers could be "gcc c99" and "gcc c++11" | ||
44 | */ | 44 | */ | ||
45 | virtual void registerDefaultCompilers(CompilerProvider* provider) const = 0; | 45 | virtual void registerDefaultCompilers(CompilerProvider* provider) const = 0; | ||
46 | 46 | | |||
47 | /** @returns whether @p path is a compiler supported by the factory */ | ||||
48 | virtual bool isSupported(const KDevelop::Path &path) const = 0; | ||||
49 | | ||||
47 | virtual ~ICompilerFactory() = default; | 50 | virtual ~ICompilerFactory() = default; | ||
48 | }; | 51 | }; | ||
49 | 52 | | |||
50 | typedef QSharedPointer<ICompilerFactory> CompilerFactoryPointer; | 53 | typedef QSharedPointer<ICompilerFactory> CompilerFactoryPointer; | ||
51 | 54 | | |||
52 | #endif // ICOMPILERFACTORY_H | 55 | #endif // ICOMPILERFACTORY_H |