ultimatepp/uppsrc/ide/Builders/BuilderUtils.h
klugier 65f16b3226 .ide GccBuilder now preprocess files required c++11
git-svn-id: svn://ultimatepp.org/upp/trunk@10950 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-03-18 19:35:24 +00:00

32 lines
823 B
C++

#ifndef _ide_Builders_BuilderUtils_h_
#define _ide_Builders_BuilderUtils_h_
#include <Core/Core.h>
namespace Upp {
class BuilderUtils final {
public:
BuilderUtils() = delete;
BuilderUtils(BuilderUtils&) = delete;
BuilderUtils& operator=(BuilderUtils&) = delete;
~BuilderUtils() = delete;
static bool IsJavaFile(const String& path);
static bool IsHeaderFile(const String& path);
static bool IsCFile(const String& path);
static bool IsCppFile(const String& path);
static bool IsCppOrCFile(const String& path);
static bool IsObjectFile(const String& path);
static bool IsXmlFile(const String& path);
static bool IsTranslationFile(const String& path);
private:
static bool HasExt(const String& path, const Index<String>& exts);
static String NormalizeAndGetFileExt(const String& path);
};
}
#endif