• Orgad Shaneh's avatar
    C++: Remove unneeded qualifications · 65e7db42
    Orgad Shaneh authored
    Mostly done using the following ruby script:
    Dir.glob('**/*.cpp').each { |file|
      next if file =~ %r{src/shared/qbs|/qmljs/}
      s = File.read(file)
      s.scan(/^using namespace (.*);$/) {
        ns = $1
        t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
          before = $1
          char = $2
          if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
            m
          else
            before + char
          end
        }
        if t != s
          puts file
          File.open(file, 'w').write(t)
        end
      }
    }
    
    Change-Id: I6fbe13ddc1485efe95c3156097bf41d90c0febac
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
    65e7db42
Name
Last commit
Last update
..
images Loading commit data...
ASTParent.cpp Loading commit data...
ASTParent.h Loading commit data...
ASTPath.cpp Loading commit data...
ASTPath.h Loading commit data...
AlreadyConsideredClassContainer.h Loading commit data...
BackwardsScanner.cpp Loading commit data...
BackwardsScanner.h Loading commit data...
CppDocument.cpp Loading commit data...
CppDocument.h Loading commit data...
CppRewriter.cpp Loading commit data...
CppRewriter.h Loading commit data...
DependencyTable.cpp Loading commit data...
DependencyTable.h Loading commit data...
DeprecatedGenTemplateInstance.cpp Loading commit data...
DeprecatedGenTemplateInstance.h Loading commit data...
Dumpers.cpp Loading commit data...
Dumpers.h Loading commit data...
ExpressionUnderCursor.cpp Loading commit data...
ExpressionUnderCursor.h Loading commit data...
FastPreprocessor.cpp Loading commit data...
FastPreprocessor.h Loading commit data...
FindUsages.cpp Loading commit data...
FindUsages.h Loading commit data...
Icons.cpp Loading commit data...
Icons.h Loading commit data...
LookupContext.cpp Loading commit data...
LookupContext.h Loading commit data...
LookupItem.cpp Loading commit data...
LookupItem.h Loading commit data...
Macro.cpp Loading commit data...
Macro.h Loading commit data...
MatchingText.cpp Loading commit data...
MatchingText.h Loading commit data...
NamePrettyPrinter.cpp Loading commit data...
NamePrettyPrinter.h Loading commit data...
Overview.cpp Loading commit data...
Overview.h Loading commit data...
OverviewModel.cpp Loading commit data...
OverviewModel.h Loading commit data...
PPToken.cpp Loading commit data...
PPToken.h Loading commit data...
PreprocessorClient.cpp Loading commit data...
PreprocessorClient.h Loading commit data...
PreprocessorEnvironment.cpp Loading commit data...
PreprocessorEnvironment.h Loading commit data...
ResolveExpression.cpp Loading commit data...
ResolveExpression.h Loading commit data...
SimpleLexer.cpp Loading commit data...
SimpleLexer.h Loading commit data...
SnapshotSymbolVisitor.cpp Loading commit data...
SnapshotSymbolVisitor.h Loading commit data...
SymbolNameVisitor.cpp Loading commit data...
SymbolNameVisitor.h Loading commit data...
TypeOfExpression.cpp Loading commit data...
TypeOfExpression.h Loading commit data...
TypePrettyPrinter.cpp Loading commit data...
TypePrettyPrinter.h Loading commit data...
cplusplus-lib.pri Loading commit data...
cplusplus.pro Loading commit data...
cplusplus.qbs Loading commit data...
cplusplus.qrc Loading commit data...
cplusplus_dependencies.pri Loading commit data...
cppmodelmanagerbase.cpp Loading commit data...
cppmodelmanagerbase.h Loading commit data...
findcdbbreakpoint.cpp Loading commit data...
findcdbbreakpoint.h Loading commit data...
pp-cctype.h Loading commit data...
pp-engine.cpp Loading commit data...
pp-engine.h Loading commit data...
pp-scanner.cpp Loading commit data...
pp-scanner.h Loading commit data...
pp.h Loading commit data...