diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-02-03 23:52:10 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-02-04 13:22:55 +0000 |
commit | 620d1c36e5a811a269a482edca5eeaa89dbd1ada (patch) | |
tree | 2bdc30381d2106f03bc3047f2f3cfe1ea1a7c413 /src/plugins/cpptools/cppcodeformatter.cpp | |
parent | 6bbee89653f442550ad2e20f25b4fb5b89b07e34 (diff) | |
download | qt-creator-620d1c36e5a811a269a482edca5eeaa89dbd1ada.tar.gz |
VCS: Remove unneeded qualifications
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: I061c7bdcade96961aed226a8348f8ab07ee95f5f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodeformatter.cpp')
0 files changed, 0 insertions, 0 deletions