From 1b9151ab93467dd5508cc9c63b674310df0ab0b3 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 6 Feb 2017 00:57:55 +0100 Subject: Optimize includes. --- configutil/src/apps/configstatus/main.cpp | 8 ++++---- configutil/src/apps/modelinspect/main.cpp | 7 ++++--- configutil/src/lib/configstatus.cpp | 13 +++++-------- configutil/src/lib/tags.cpp | 5 +---- 4 files changed, 14 insertions(+), 19 deletions(-) (limited to 'configutil') diff --git a/configutil/src/apps/configstatus/main.cpp b/configutil/src/apps/configstatus/main.cpp index e17ee658cc2..db411d309d1 100644 --- a/configutil/src/apps/configstatus/main.cpp +++ b/configutil/src/apps/configstatus/main.cpp @@ -1,13 +1,13 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include #include -#include #include -LOG_SETUP("vespa-config-status"); #include #include -#include +#include + +#include +LOG_SETUP("vespa-config-status"); class Application : public FastOS_Application { ConfigStatus::Flags _flags; diff --git a/configutil/src/apps/modelinspect/main.cpp b/configutil/src/apps/modelinspect/main.cpp index 592bc8bdf8b..ca660791223 100644 --- a/configutil/src/apps/modelinspect/main.cpp +++ b/configutil/src/apps/modelinspect/main.cpp @@ -1,13 +1,14 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include #include -#include -LOG_SETUP("vespa-model-inspect"); #include #include #include #include +#include + +#include +LOG_SETUP("vespa-model-inspect"); class Application : public FastOS_Application { diff --git a/configutil/src/lib/configstatus.cpp b/configutil/src/lib/configstatus.cpp index 5063a6d09cc..bd3b9cb43ea 100644 --- a/configutil/src/lib/configstatus.cpp +++ b/configutil/src/lib/configstatus.cpp @@ -1,19 +1,16 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -#include -LOG_SETUP("vespa-config-status"); -#include - +#include "configstatus.h" +#include "tags.h" #include #include #include #include #include +#include -#include - -#include "configstatus.h" +#include +LOG_SETUP("vespa-config-status"); using configdefinitions::tagsContain; diff --git a/configutil/src/lib/tags.cpp b/configutil/src/lib/tags.cpp index 50b01c80ba2..8a20d1a1b6d 100644 --- a/configutil/src/lib/tags.cpp +++ b/configutil/src/lib/tags.cpp @@ -1,10 +1,7 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include - -#include - #include "tags.h" +#include namespace configdefinitions { -- cgit v1.2.3