diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-02-04 11:00:26 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-02-04 14:02:04 +0000 |
commit | 7789201aea8d88a724afdbc025983ba2c85a08b4 (patch) | |
tree | 66ff8a21913128c3e1e14ada4bc10bc74257c4cd /src/plugins/cpptools/cppcodeformatter.cpp | |
parent | 0b0e6506d3042e6240ef0b5871a1f18700ce839d (diff) | |
download | qt-creator-7789201aea8d88a724afdbc025983ba2c85a08b4.tar.gz |
FakeVim: 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: I41dd2d402b2f5e7c677ddd461a0eeb1c28d98c35
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodeformatter.cpp')
0 files changed, 0 insertions, 0 deletions