diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-20 12:18:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-20 12:42:33 +0200 |
commit | dc97ede7cffbb5ce704602456ba0f560caee22a2 (patch) | |
tree | 0e85a5ea7818f856dd110cc28d681b4f4c9792ff /solenv | |
parent | tdf#112381 Macro Organizer: Move Run, Close, Help buttons to the bottom (diff) | |
download | core-dc97ede7cffbb5ce704602456ba0f560caee22a2.tar.gz core-dc97ede7cffbb5ce704602456ba0f560caee22a2.zip |
new loplugin flatten
look for places where we can flatten the control flow in a method by
exiting early with a throw, ie. instead of
if (cond)
stuff();
else
throw ex;
we change it to:
if (!cond)
throw ex;
stuff();
Change-Id: I8b6bdf883b325807c7e3a3ef698e4f4606e7d38b
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/CompilerTest_compilerplugins_clang.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/CompilerTest_compilerplugins_clang.mk b/solenv/CompilerTest_compilerplugins_clang.mk index 02d6155d3dd5..8df1c2b495f7 100644 --- a/solenv/CompilerTest_compilerplugins_clang.mk +++ b/solenv/CompilerTest_compilerplugins_clang.mk @@ -19,6 +19,7 @@ $(eval $(call gb_CompilerTest_add_exception_objects,compilerplugins_clang, \ compilerplugins/clang/test/externvar \ compilerplugins/clang/test/expressionalwayszero \ compilerplugins/clang/test/finalprotected \ + compilerplugins/clang/test/flatten \ compilerplugins/clang/test/loopvartoosmall \ compilerplugins/clang/test/oncevar \ compilerplugins/clang/test/oslendian-1 \ |