From 2a79399a53511385f10069713273af6ec9b6f035 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Fri, 6 Jan 2012 21:57:59 +0200 Subject: [PATCH] astyle fix --- lib/tokenize.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 314f65b39..ab8477866 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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()); }