astyle fix

This commit is contained in:
Reijo Tomperi 2012-01-06 21:57:59 +02:00
parent e91d239ea5
commit 2a79399a53
1 changed files with 12 additions and 6 deletions

View File

@ -9504,28 +9504,34 @@ void Tokenizer::printUnknownTypes()
}
}
std::string Tokenizer::getSourceFilePath() const {
std::string Tokenizer::getSourceFilePath() const
{
if (_files.empty())
return std::string("");
return _files[0];
}
bool Tokenizer::isJava() const {
bool Tokenizer::isJava() const
{
return Path::isJava(getSourceFilePath());
}
bool Tokenizer::isCSharp() const {
bool Tokenizer::isCSharp() const
{
return Path::isCSharp(getSourceFilePath());
}
bool Tokenizer::isJavaOrCSharp() const {
bool Tokenizer::isJavaOrCSharp() const
{
return isJava() || isCSharp();
}
bool Tokenizer::isC() const {
bool Tokenizer::isC() const
{
return Path::isC(getSourceFilePath());
}
bool Tokenizer::isCPP() const {
bool Tokenizer::isCPP() const
{
return Path::isCPP(getSourceFilePath());
}