From d161b6bcb87566a31cb5e0700b84f968539f502f Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Wed, 20 Jun 2018 10:38:06 +0200 Subject: move LOG_SETUP after other includes --- searchlib/src/apps/tests/btreestress_test.cpp | 6 +++--- searchlib/src/tests/aggregator/attr_test.cpp | 6 +++--- searchlib/src/tests/aggregator/perdocexpr.cpp | 6 +++--- searchlib/src/tests/attribute/benchmark/attributebenchmark.cpp | 6 +++--- .../document_weight_iterator/document_weight_iterator_test.cpp | 6 +++--- searchlib/src/tests/attribute/postinglist/postinglist.cpp | 6 +++--- .../attribute/postinglistattribute/postinglistattribute_test.cpp | 6 +++--- .../attribute/searchable/attribute_searchable_adapter_test.cpp | 6 +++--- .../searchable/attribute_weighted_set_blueprint_test.cpp | 7 +++---- .../src/tests/attribute/searchable/attributeblueprint_test.cpp | 6 +++--- searchlib/src/tests/btree/frozenbtree_test.cpp | 6 +++--- searchlib/src/tests/btree/iteratespeed.cpp | 6 +++--- searchlib/src/tests/diskindex/fusion/fusion_test.cpp | 6 +++--- searchlib/src/tests/grouping/grouping_test.cpp | 6 +++--- searchlib/src/tests/groupingengine/groupingengine_benchmark.cpp | 6 +++--- searchlib/src/tests/groupingengine/groupingengine_test.cpp | 6 +++--- searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp | 6 +++--- searchlib/src/tests/predicate/simple_index_test.cpp | 6 +++--- searchlib/src/tests/queryeval/queryeval.cpp | 7 +++---- .../src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp | 6 +++--- searchlib/src/vespa/searchlib/attribute/attributeiterators.cpp | 5 ++--- searchlib/src/vespa/searchlib/attribute/attributevector.cpp | 6 +++--- searchlib/src/vespa/searchlib/attribute/attrvector.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/createarraystd.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/createsetstd.cpp | 5 +++-- .../src/vespa/searchlib/attribute/createsinglefastsearch.cpp | 6 +++--- searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp | 7 +++---- searchlib/src/vespa/searchlib/attribute/enumattribute.cpp | 3 ++- searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/enumstore.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/enumstorebase.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/extendableattributes.cpp | 6 +++--- searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp | 3 ++- searchlib/src/vespa/searchlib/attribute/flagattribute.cpp | 5 +++-- .../src/vespa/searchlib/attribute/imported_search_context.cpp | 6 +++--- searchlib/src/vespa/searchlib/attribute/multinumericattribute.cpp | 3 ++- .../src/vespa/searchlib/attribute/multinumericenumattribute.cpp | 3 ++- .../src/vespa/searchlib/attribute/multistringpostattribute.cpp | 3 ++- .../src/vespa/searchlib/attribute/postinglistsearchcontext.cpp | 4 ++-- searchlib/src/vespa/searchlib/attribute/postingstore.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/predicate_attribute.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/reference_attribute.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp | 3 ++- .../src/vespa/searchlib/attribute/singlenumericattribute.cpp | 3 ++- .../src/vespa/searchlib/attribute/singlenumericenumattribute.cpp | 3 ++- .../src/vespa/searchlib/attribute/singlenumericpostattribute.cpp | 3 ++- .../src/vespa/searchlib/attribute/singlesmallnumericattribute.cpp | 5 +++-- searchlib/src/vespa/searchlib/attribute/singlestringattribute.cpp | 3 ++- searchlib/src/vespa/searchlib/btree/btreeinserter.cpp | 7 +++---- searchlib/src/vespa/searchlib/btree/btreeiterator.cpp | 5 +++-- searchlib/src/vespa/searchlib/btree/btreeroot.cpp | 7 +++---- searchlib/src/vespa/searchlib/btree/btreestore.cpp | 5 +++-- searchlib/src/vespa/searchlib/memoryindex/dictionary.cpp | 6 +++--- searchlib/src/vespa/searchlib/memoryindex/memoryfieldindex.cpp | 8 +++----- .../src/vespa/searchlib/memoryindex/ordereddocumentinserter.cpp | 5 +++-- searchlib/src/vespa/searchlib/memoryindex/postingiterator.cpp | 6 +++--- .../src/vespa/searchlib/predicate/document_features_store.cpp | 5 +++-- searchlib/src/vespa/searchlib/predicate/predicate_index.cpp | 5 +++-- .../src/vespa/searchlib/predicate/predicate_interval_store.cpp | 6 +++--- .../src/vespa/searchlib/predicate/predicate_tree_annotator.cpp | 5 +++-- .../predicate/predicate_zero_constraint_posting_list.cpp | 4 ++-- searchlib/src/vespa/searchlib/predicate/simple_index.cpp | 5 +++-- searchlib/src/vespa/searchlib/queryeval/predicate_blueprint.cpp | 5 ++--- searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp | 5 +++-- .../src/vespa/searchlib/test/fakedata/fakeegcompr64filterocc.cpp | 1 + searchlib/src/vespa/searchlib/test/fakedata/fakememtreeocc.cpp | 5 +++-- 66 files changed, 182 insertions(+), 160 deletions(-) (limited to 'searchlib/src') diff --git a/searchlib/src/apps/tests/btreestress_test.cpp b/searchlib/src/apps/tests/btreestress_test.cpp index e0bdd5b406e..ca92ad4865b 100644 --- a/searchlib/src/apps/tests/btreestress_test.cpp +++ b/searchlib/src/apps/tests/btreestress_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("btreestress_test"); - #include #include #include @@ -24,6 +21,9 @@ LOG_SETUP("btreestress_test"); #include #include +#include +LOG_SETUP("btreestress_test"); + using MyTree = search::btree::BTree; using MyTreeIterator = typename MyTree::Iterator; using MyTreeConstIterator = typename MyTree::ConstIterator; diff --git a/searchlib/src/tests/aggregator/attr_test.cpp b/searchlib/src/tests/aggregator/attr_test.cpp index c57f335aceb..21fc41e3b9d 100644 --- a/searchlib/src/tests/aggregator/attr_test.cpp +++ b/searchlib/src/tests/aggregator/attr_test.cpp @@ -1,9 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include -#include -LOG_SETUP("attr_test"); - #include #include #include @@ -11,6 +8,9 @@ LOG_SETUP("attr_test"); #include #include +#include +LOG_SETUP("attr_test"); + using namespace search; using namespace search::expression; using namespace vespalib; diff --git a/searchlib/src/tests/aggregator/perdocexpr.cpp b/searchlib/src/tests/aggregator/perdocexpr.cpp index 9837deb0186..25bbd16de07 100644 --- a/searchlib/src/tests/aggregator/perdocexpr.cpp +++ b/searchlib/src/tests/aggregator/perdocexpr.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("per_doc_expr_test"); - #include #include #include @@ -17,6 +14,9 @@ LOG_SETUP("per_doc_expr_test"); #include #include +#include +LOG_SETUP("per_doc_expr_test"); + #define MU std::make_unique using namespace search; diff --git a/searchlib/src/tests/attribute/benchmark/attributebenchmark.cpp b/searchlib/src/tests/attribute/benchmark/attributebenchmark.cpp index 0eb2dd2cbc4..5f10f5ad631 100644 --- a/searchlib/src/tests/attribute/benchmark/attributebenchmark.cpp +++ b/searchlib/src/tests/attribute/benchmark/attributebenchmark.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("attributebenchmark"); - #include #include #include @@ -21,6 +18,9 @@ LOG_SETUP("attributebenchmark"); #include "attributeupdater.h" #include +#include +LOG_SETUP("attributebenchmark"); + using std::shared_ptr; typedef std::vector NumVector; diff --git a/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp b/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp index 9df37e36b49..9a7552ce681 100644 --- a/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp +++ b/searchlib/src/tests/attribute/document_weight_iterator/document_weight_iterator_test.cpp @@ -1,9 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include -#include -LOG_SETUP("document_weight_iterator_test"); - #include #include #include @@ -28,6 +25,9 @@ LOG_SETUP("document_weight_iterator_test"); #include #include +#include +LOG_SETUP("document_weight_iterator_test"); + using namespace search; using namespace search::attribute; diff --git a/searchlib/src/tests/attribute/postinglist/postinglist.cpp b/searchlib/src/tests/attribute/postinglist/postinglist.cpp index eb8712b774c..fe79db163f8 100644 --- a/searchlib/src/tests/attribute/postinglist/postinglist.cpp +++ b/searchlib/src/tests/attribute/postinglist/postinglist.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("postinglist_test"); - #include #include #include @@ -14,6 +11,9 @@ LOG_SETUP("postinglist_test"); #include #include +#include +LOG_SETUP("postinglist_test"); + namespace search { using vespalib::GenerationHandler; diff --git a/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.cpp b/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.cpp index ffdf01ce494..f0496049f0e 100644 --- a/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.cpp +++ b/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("postinglistattribute_test"); - #include #include @@ -21,6 +18,9 @@ LOG_SETUP("postinglistattribute_test"); #include #include +#include +LOG_SETUP("postinglistattribute_test"); + using std::shared_ptr; bool diff --git a/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp b/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp index cbb8f18f9f8..9ed08643def 100644 --- a/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp +++ b/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("attribute_searchable_adapter_test"); - #include #include #include @@ -31,6 +28,9 @@ LOG_SETUP("attribute_searchable_adapter_test"); #include #include +#include +LOG_SETUP("attribute_searchable_adapter_test"); + using search::AttributeFactory; using search::AttributeGuard; using search::AttributeVector; diff --git a/searchlib/src/tests/attribute/searchable/attribute_weighted_set_blueprint_test.cpp b/searchlib/src/tests/attribute/searchable/attribute_weighted_set_blueprint_test.cpp index c5805447d7f..be64edf89f2 100644 --- a/searchlib/src/tests/attribute/searchable/attribute_weighted_set_blueprint_test.cpp +++ b/searchlib/src/tests/attribute/searchable/attribute_weighted_set_blueprint_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include -#include -LOG_SETUP("attribute_weighted_set_blueprint_test"); - #include #include #include @@ -16,9 +13,11 @@ LOG_SETUP("attribute_weighted_set_blueprint_test"); #include #include #include - #include +#include +LOG_SETUP("attribute_weighted_set_blueprint_test"); + using namespace search; using namespace search::query; using namespace search::fef; diff --git a/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp b/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp index 2b8279c6822..dc7cf53d188 100644 --- a/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp +++ b/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("attributeblueprint_test"); - #include #include #include @@ -18,6 +15,9 @@ LOG_SETUP("attributeblueprint_test"); #include #include +#include +LOG_SETUP("attributeblueprint_test"); + using search::AttributeGuard; using search::AttributeVector; using search::IAttributeManager; diff --git a/searchlib/src/tests/btree/frozenbtree_test.cpp b/searchlib/src/tests/btree/frozenbtree_test.cpp index 871752b7a0d..988239a5438 100644 --- a/searchlib/src/tests/btree/frozenbtree_test.cpp +++ b/searchlib/src/tests/btree/frozenbtree_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("frozenbtree_test"); - #define DEBUG_FROZENBTREE #define LOG_FROZENBTREEXX #include @@ -13,6 +10,9 @@ LOG_SETUP("frozenbtree_test"); #include #include +#include +LOG_SETUP("frozenbtree_test"); + using search::btree::BTreeRoot; using search::btree::BTreeNode; using search::btree::BTreeInternalNode; diff --git a/searchlib/src/tests/btree/iteratespeed.cpp b/searchlib/src/tests/btree/iteratespeed.cpp index 6e6029335e8..2f60b06d675 100644 --- a/searchlib/src/tests/btree/iteratespeed.cpp +++ b/searchlib/src/tests/btree/iteratespeed.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("iteratespeed"); - #include #include #include @@ -21,6 +18,9 @@ LOG_SETUP("iteratespeed"); #include #include +#include +LOG_SETUP("iteratespeed"); + namespace search { namespace btree { diff --git a/searchlib/src/tests/diskindex/fusion/fusion_test.cpp b/searchlib/src/tests/diskindex/fusion/fusion_test.cpp index 12c9d52356a..809688bdb2e 100644 --- a/searchlib/src/tests/diskindex/fusion/fusion_test.cpp +++ b/searchlib/src/tests/diskindex/fusion/fusion_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("fusion_test"); - #include #include #include @@ -21,6 +18,9 @@ LOG_SETUP("fusion_test"); #include #include +#include +LOG_SETUP("fusion_test"); + namespace search { using document::Document; diff --git a/searchlib/src/tests/grouping/grouping_test.cpp b/searchlib/src/tests/grouping/grouping_test.cpp index a10890fba5e..4cf9eb6f5c6 100644 --- a/searchlib/src/tests/grouping/grouping_test.cpp +++ b/searchlib/src/tests/grouping/grouping_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("grouping_test"); - #include #include #include @@ -16,6 +13,9 @@ LOG_SETUP("grouping_test"); #include #include +#include +LOG_SETUP("grouping_test"); + using namespace vespalib; using namespace search; using namespace search::aggregation; diff --git a/searchlib/src/tests/groupingengine/groupingengine_benchmark.cpp b/searchlib/src/tests/groupingengine/groupingengine_benchmark.cpp index f414e298869..37aa9cc3268 100644 --- a/searchlib/src/tests/groupingengine/groupingengine_benchmark.cpp +++ b/searchlib/src/tests/groupingengine/groupingengine_benchmark.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("grouping_benchmark"); - #include #include #include @@ -18,6 +15,9 @@ LOG_SETUP("grouping_benchmark"); #include #include +#include +LOG_SETUP("grouping_benchmark"); + using namespace vespalib; using namespace search; using namespace search::attribute; diff --git a/searchlib/src/tests/groupingengine/groupingengine_test.cpp b/searchlib/src/tests/groupingengine/groupingengine_test.cpp index 06daaaca10f..a0a6c5cf4c2 100644 --- a/searchlib/src/tests/groupingengine/groupingengine_test.cpp +++ b/searchlib/src/tests/groupingengine/groupingengine_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("grouping_engine_test"); - #include #include #include @@ -17,6 +14,9 @@ LOG_SETUP("grouping_engine_test"); #include #include +#include +LOG_SETUP("grouping_engine_test"); + using namespace vespalib; using namespace search; using namespace search::attribute; diff --git a/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp b/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp index 8e921712cf6..c926d1c2831 100644 --- a/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp +++ b/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("dictionary_test"); - #include #include #include @@ -21,6 +18,9 @@ LOG_SETUP("dictionary_test"); #include #include +#include +LOG_SETUP("dictionary_test"); + namespace search { using namespace btree; diff --git a/searchlib/src/tests/predicate/simple_index_test.cpp b/searchlib/src/tests/predicate/simple_index_test.cpp index 30cc0b2e4bb..fbb0a5933c9 100644 --- a/searchlib/src/tests/predicate/simple_index_test.cpp +++ b/searchlib/src/tests/predicate/simple_index_test.cpp @@ -1,13 +1,13 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // Unit tests for simple_index. -#include -LOG_SETUP("simple_index_test"); - #include #include #include +#include +LOG_SETUP("simple_index_test"); + using namespace search; using namespace search::predicate; using vespalib::GenerationHolder; diff --git a/searchlib/src/tests/queryeval/queryeval.cpp b/searchlib/src/tests/queryeval/queryeval.cpp index 1ad0b643799..9f4d8403d76 100644 --- a/searchlib/src/tests/queryeval/queryeval.cpp +++ b/searchlib/src/tests/queryeval/queryeval.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP("query_eval_test"); - #include #include #include @@ -21,9 +18,11 @@ LOG_SETUP("query_eval_test"); #include #include #include - #include +#include +LOG_SETUP("query_eval_test"); + using namespace search::queryeval; using search::BitVector; using search::BitVectorIterator; diff --git a/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp b/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp index a23c9b091c8..28310c65862 100644 --- a/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp +++ b/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp @@ -1,8 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "attribute_blueprint_factory.h" -#include -LOG_SETUP(".searchlib.attribute.attribute_blueprint_factory"); #include "attribute_weighted_set_blueprint.h" #include "i_document_weight_attribute.h" #include "iterator_pack.h" @@ -27,10 +25,12 @@ LOG_SETUP(".searchlib.attribute.attribute_blueprint_factory"); #include #include #include - #include #include +#include +LOG_SETUP(".searchlib.attribute.attribute_blueprint_factory"); + using search::attribute::IAttributeVector; using search::attribute::ISearchContext; using search::fef::TermFieldMatchData; diff --git a/searchlib/src/vespa/searchlib/attribute/attributeiterators.cpp b/searchlib/src/vespa/searchlib/attribute/attributeiterators.cpp index 95e0c389393..3c8040c9d0d 100644 --- a/searchlib/src/vespa/searchlib/attribute/attributeiterators.cpp +++ b/searchlib/src/vespa/searchlib/attribute/attributeiterators.cpp @@ -1,12 +1,11 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#include "attributeiterators.hpp" +#include "postinglistattribute.h" #include LOG_SETUP(".searchlib.attribute.attribute_iterators"); -#include "attributeiterators.hpp" -#include "postinglistattribute.h" - namespace search { using queryeval::MinMaxPostingInfo; diff --git a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp index 3deed2ed33f..32e21bdd122 100644 --- a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp +++ b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp @@ -1,9 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "attributevector.h" -#include -LOG_SETUP(".searchlib.attribute.attributevector"); - #include "attribute_read_guard.h" #include "attributefilesavetarget.h" #include "attributeiterators.hpp" @@ -24,6 +21,9 @@ LOG_SETUP(".searchlib.attribute.attributevector"); #include #include +#include +LOG_SETUP(".searchlib.attribute.attributevector"); + using vespalib::getLastErrorString; using document::ValueUpdate; diff --git a/searchlib/src/vespa/searchlib/attribute/attrvector.cpp b/searchlib/src/vespa/searchlib/attribute/attrvector.cpp index 09d8547ada0..94b847a02e6 100644 --- a/searchlib/src/vespa/searchlib/attribute/attrvector.cpp +++ b/searchlib/src/vespa/searchlib/attribute/attrvector.cpp @@ -1,11 +1,12 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "attrvector.h" -#include -LOG_SETUP(".searchlib.attribute.attr_vector"); #include "attrvector.hpp" #include "iattributesavetarget.h" +#include +LOG_SETUP(".searchlib.attribute.attr_vector"); + namespace search { StringDirectAttribute:: diff --git a/searchlib/src/vespa/searchlib/attribute/createarraystd.cpp b/searchlib/src/vespa/searchlib/attribute/createarraystd.cpp index 40a22d98533..9e2d4d764e7 100644 --- a/searchlib/src/vespa/searchlib/attribute/createarraystd.cpp +++ b/searchlib/src/vespa/searchlib/attribute/createarraystd.cpp @@ -1,7 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.attribute.create_array_std"); #include "attributefactory.h" #include "defines.h" #include "attributevector.hpp" @@ -9,6 +7,9 @@ LOG_SETUP(".searchlib.attribute.create_array_std"); #include "multinumericattribute.hpp" #include "multistringattribute.hpp" +#include +LOG_SETUP(".searchlib.attribute.create_array_std"); + namespace search { using attribute::BasicType; diff --git a/searchlib/src/vespa/searchlib/attribute/createsetstd.cpp b/searchlib/src/vespa/searchlib/attribute/createsetstd.cpp index 80c03b42e57..8ef75de2b44 100644 --- a/searchlib/src/vespa/searchlib/attribute/createsetstd.cpp +++ b/searchlib/src/vespa/searchlib/attribute/createsetstd.cpp @@ -1,7 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.attribute.create_set_std"); #include "attributefactory.h" #include "defines.h" #include "attributevector.hpp" @@ -9,6 +7,9 @@ LOG_SETUP(".searchlib.attribute.create_set_std"); #include "multinumericattribute.hpp" #include "multistringattribute.hpp" +#include +LOG_SETUP(".searchlib.attribute.create_set_std"); + namespace search { using attribute::BasicType; diff --git a/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp b/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp index d55f0ee8063..ec200124286 100644 --- a/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp +++ b/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp @@ -1,8 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.attribute.create_single_fast_search"); - #include "attributefactory.h" #include "integerbase.h" #include "floatbase.h" @@ -15,6 +12,9 @@ LOG_SETUP(".searchlib.attribute.create_single_fast_search"); #include "enumattribute.hpp" #include "singleenumattribute.hpp" +#include +LOG_SETUP(".searchlib.attribute.create_single_fast_search"); + #define INTPOSTING(T) SingleValueNumericPostingAttribute< ENUM_ATTRIBUTE(IntegerAttributeTemplate) > #define FLOATPOSTING(T) SingleValueNumericPostingAttribute< ENUM_ATTRIBUTE(FloatingPointAttributeTemplate) > diff --git a/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp b/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp index 5a6bddb1cd5..6fefc7a1852 100644 --- a/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp +++ b/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp @@ -1,9 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. - -#include -LOG_SETUP(".searchlib.attribute.create_single_std"); - #include "attributefactory.h" #include "predicate_attribute.h" #include "singlesmallnumericattribute.h" @@ -14,6 +10,9 @@ LOG_SETUP(".searchlib.attribute.create_single_std"); #include #include +#include +LOG_SETUP(".searchlib.attribute.create_single_std"); + namespace search { using attribute::BasicType; diff --git a/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp b/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp index d8b6519ef5b..a894bc63d49 100644 --- a/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "enumattribute.h" +#include "enumattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.enum_attribute"); -#include "enumattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp b/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp index ed482263566..bf323d56245 100644 --- a/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp +++ b/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp @@ -1,11 +1,12 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "enumcomparator.h" -#include -LOG_SETUP(".searchlib.attribute.enum_comparator"); #include "enumstore.hpp" #include +#include +LOG_SETUP(".searchlib.attribute.enum_comparator"); + namespace search { namespace { diff --git a/searchlib/src/vespa/searchlib/attribute/enumstore.cpp b/searchlib/src/vespa/searchlib/attribute/enumstore.cpp index 65ae627a192..e0f46ffe111 100644 --- a/searchlib/src/vespa/searchlib/attribute/enumstore.cpp +++ b/searchlib/src/vespa/searchlib/attribute/enumstore.cpp @@ -1,11 +1,12 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "enumstore.h" -#include -LOG_SETUP(".searchlib.attribute.enum_store"); #include "enumstore.hpp" #include +#include +LOG_SETUP(".searchlib.attribute.enum_store"); + namespace search { template <> diff --git a/searchlib/src/vespa/searchlib/attribute/enumstorebase.cpp b/searchlib/src/vespa/searchlib/attribute/enumstorebase.cpp index c66432df245..914a56e7abc 100644 --- a/searchlib/src/vespa/searchlib/attribute/enumstorebase.cpp +++ b/searchlib/src/vespa/searchlib/attribute/enumstorebase.cpp @@ -1,8 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "enumstorebase.h" -#include -LOG_SETUP(".searchlib.attribute.enumstorebase"); #include "enumstore.h" #include #include @@ -11,6 +9,9 @@ LOG_SETUP(".searchlib.attribute.enumstorebase"); #include #include +#include +LOG_SETUP(".searchlib.attribute.enumstorebase"); + namespace search { using btree::BTreeNode; diff --git a/searchlib/src/vespa/searchlib/attribute/extendableattributes.cpp b/searchlib/src/vespa/searchlib/attribute/extendableattributes.cpp index 9a69747870e..feac5caabd5 100644 --- a/searchlib/src/vespa/searchlib/attribute/extendableattributes.cpp +++ b/searchlib/src/vespa/searchlib/attribute/extendableattributes.cpp @@ -1,11 +1,11 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.attribute.extendable_attributes"); - #include "extendableattributes.h" #include "attrvector.hpp" +#include +LOG_SETUP(".searchlib.attribute.extendable_attributes"); + namespace search { //******************** CollectionType::SINGLE ********************// diff --git a/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp b/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp index f2db7b5b47a..ae2f0234e60 100644 --- a/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp +++ b/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "fixedsourceselector.h" +#include "singlenumericattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.fixed_source_selector"); -#include "singlenumericattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/flagattribute.cpp b/searchlib/src/vespa/searchlib/attribute/flagattribute.cpp index dde09761343..0e5027ea46e 100644 --- a/searchlib/src/vespa/searchlib/attribute/flagattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/flagattribute.cpp @@ -1,8 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "flagattribute.h" -#include -LOG_SETUP(".searchlib.attribute.flag_attribute"); #include "load_utils.hpp" #include "attributeiterators.h" #include "multinumericattribute.hpp" @@ -10,6 +8,9 @@ LOG_SETUP(".searchlib.attribute.flag_attribute"); #include #include +#include +LOG_SETUP(".searchlib.attribute.flag_attribute"); + namespace search { using queryeval::SearchIterator; diff --git a/searchlib/src/vespa/searchlib/attribute/imported_search_context.cpp b/searchlib/src/vespa/searchlib/attribute/imported_search_context.cpp index 4302725a8b7..9ee8612c52a 100644 --- a/searchlib/src/vespa/searchlib/attribute/imported_search_context.cpp +++ b/searchlib/src/vespa/searchlib/attribute/imported_search_context.cpp @@ -1,9 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "imported_search_context.h" -#include -LOG_SETUP(".searchlib.attribute.imported_search_context"); - #include "bitvector_search_cache.h" #include "imported_attribute_vector.h" #include "reference_attribute.h" @@ -11,6 +8,9 @@ LOG_SETUP(".searchlib.attribute.imported_search_context"); #include #include "attributeiterators.hpp" +#include +LOG_SETUP(".searchlib.attribute.imported_search_context"); + using search::datastore::EntryRef; using search::queryeval::EmptySearch; using search::queryeval::SearchIterator; diff --git a/searchlib/src/vespa/searchlib/attribute/multinumericattribute.cpp b/searchlib/src/vespa/searchlib/attribute/multinumericattribute.cpp index 38af12380a9..e16474e45a8 100644 --- a/searchlib/src/vespa/searchlib/attribute/multinumericattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/multinumericattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "multinumericattribute.h" +#include "multinumericattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.multi_numeric_attribute"); -#include "multinumericattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/multinumericenumattribute.cpp b/searchlib/src/vespa/searchlib/attribute/multinumericenumattribute.cpp index 3875c563bab..0e5efe21de0 100644 --- a/searchlib/src/vespa/searchlib/attribute/multinumericenumattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/multinumericenumattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "multinumericenumattribute.h" +#include "multinumericenumattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.multi_numeric_enum_attribute"); -#include "multinumericenumattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/multistringpostattribute.cpp b/searchlib/src/vespa/searchlib/attribute/multistringpostattribute.cpp index 32dd578fd4a..75e05d61b13 100644 --- a/searchlib/src/vespa/searchlib/attribute/multistringpostattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/multistringpostattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "multistringpostattribute.h" +#include "multistringpostattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.multi_string_post_attribute"); -#include "multistringpostattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp b/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp index 6f67a2162da..1cfb0ab1191 100644 --- a/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp +++ b/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.cpp @@ -1,13 +1,13 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "postinglistsearchcontext.h" -#include -LOG_SETUP(".searchlib.attribute.posting_list_search_context"); #include "postinglistsearchcontext.hpp" #include "attributeiterators.hpp" #include "diversity.hpp" #include +#include +LOG_SETUP(".searchlib.attribute.posting_list_search_context"); namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/postingstore.cpp b/searchlib/src/vespa/searchlib/attribute/postingstore.cpp index 86f658a0be2..a0fa7e35054 100644 --- a/searchlib/src/vespa/searchlib/attribute/postingstore.cpp +++ b/searchlib/src/vespa/searchlib/attribute/postingstore.cpp @@ -1,14 +1,15 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "postingstore.h" -#include -LOG_SETUP(".searchlib.attribute.posting_store"); #include #include #include #include #include +#include +LOG_SETUP(".searchlib.attribute.posting_store"); + namespace search::attribute { using btree::BTreeNoLeafData; diff --git a/searchlib/src/vespa/searchlib/attribute/predicate_attribute.cpp b/searchlib/src/vespa/searchlib/attribute/predicate_attribute.cpp index 49dcb9297b6..424405a520e 100644 --- a/searchlib/src/vespa/searchlib/attribute/predicate_attribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/predicate_attribute.cpp @@ -1,7 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.attribute.predicate_attribute"); #include "predicate_attribute.h" #include #include @@ -10,6 +8,9 @@ LOG_SETUP(".searchlib.attribute.predicate_attribute"); #include "iattributesavetarget.h" #include "attribute_header.h" +#include +LOG_SETUP(".searchlib.attribute.predicate_attribute"); + using document::Predicate; using document::PredicateFieldValue; using vespalib::DataBuffer; diff --git a/searchlib/src/vespa/searchlib/attribute/reference_attribute.cpp b/searchlib/src/vespa/searchlib/attribute/reference_attribute.cpp index 87fe4bd3a2b..050954157da 100644 --- a/searchlib/src/vespa/searchlib/attribute/reference_attribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/reference_attribute.cpp @@ -1,8 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "reference_attribute.h" -#include -LOG_SETUP(".searchlib.attribute.reference_attribute"); #include "reference_attribute_saver.h" #include "attributesaver.h" #include "readerbase.h" @@ -13,6 +11,9 @@ LOG_SETUP(".searchlib.attribute.reference_attribute"); #include #include +#include +LOG_SETUP(".searchlib.attribute.reference_attribute"); + namespace search::attribute { namespace { diff --git a/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp index 41cfb972ad0..0e122c9d583 100644 --- a/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "singleenumattribute.h" +#include "singleenumattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.single_enum_attribute"); -#include "singleenumattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp index 3f497f613a2..ef92e94aa95 100644 --- a/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "singlenumericattribute.h" +#include "singlenumericattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.single_numeric_attribute"); -#include "singlenumericattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/singlenumericenumattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singlenumericenumattribute.cpp index bedf3dc564f..6c831cade89 100644 --- a/searchlib/src/vespa/searchlib/attribute/singlenumericenumattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singlenumericenumattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "singlenumericenumattribute.h" +#include "singlenumericenumattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.single_numeric_enum_attribute"); -#include "singlenumericenumattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/singlenumericpostattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singlenumericpostattribute.cpp index d5626d1d092..9de02dbeaf9 100644 --- a/searchlib/src/vespa/searchlib/attribute/singlenumericpostattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singlenumericpostattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "singlenumericpostattribute.h" +#include "singlenumericpostattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.single_numeric_post_attribute"); -#include "singlenumericpostattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/attribute/singlesmallnumericattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singlesmallnumericattribute.cpp index ce02b9b4725..5100e2e5546 100644 --- a/searchlib/src/vespa/searchlib/attribute/singlesmallnumericattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singlesmallnumericattribute.cpp @@ -1,14 +1,15 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "singlesmallnumericattribute.h" -#include -LOG_SETUP(".searchlib.asingle_small_numeric_attribute"); #include "attributevector.hpp" #include "primitivereader.h" #include "attributeiterators.hpp" #include #include "iattributesavetarget.h" +#include +LOG_SETUP(".searchlib.attribute.single_small_numeric_attribute"); + namespace search { SingleValueSmallNumericAttribute:: diff --git a/searchlib/src/vespa/searchlib/attribute/singlestringattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singlestringattribute.cpp index 54b9eb7ed81..195926f656f 100644 --- a/searchlib/src/vespa/searchlib/attribute/singlestringattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singlestringattribute.cpp @@ -1,9 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "singlestringattribute.h" +#include "singlestringattribute.hpp" + #include LOG_SETUP(".searchlib.attribute.single_string_attribute"); -#include "singlestringattribute.hpp" namespace search { diff --git a/searchlib/src/vespa/searchlib/btree/btreeinserter.cpp b/searchlib/src/vespa/searchlib/btree/btreeinserter.cpp index d5ac368ce77..f307c474f90 100644 --- a/searchlib/src/vespa/searchlib/btree/btreeinserter.cpp +++ b/searchlib/src/vespa/searchlib/btree/btreeinserter.cpp @@ -1,15 +1,14 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "btreeinserter.h" - -#include -LOG_SETUP(".searchlib.btree.btreeinserter"); - #include "btreenodeallocator.h" #include "btreerootbase.hpp" #include "btreeinserter.hpp" #include "btreenode.hpp" +#include +LOG_SETUP(".searchlib.btree.btreeinserter"); + namespace search::btree { template class BTreeInserter; diff --git a/searchlib/src/vespa/searchlib/btree/btreeiterator.cpp b/searchlib/src/vespa/searchlib/btree/btreeiterator.cpp index b4ccbfed9e0..08ad4345289 100644 --- a/searchlib/src/vespa/searchlib/btree/btreeiterator.cpp +++ b/searchlib/src/vespa/searchlib/btree/btreeiterator.cpp @@ -1,13 +1,14 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "btreeiterator.h" -#include -LOG_SETUP(".searchlib.btree.breeiterator"); #include "btreeroot.h" #include "btreenodeallocator.h" #include "btreeiterator.hpp" #include "btreenode.hpp" +#include +LOG_SETUP(".searchlib.btree.breeiterator"); + namespace search::btree { template class BTreeIteratorBase; diff --git a/searchlib/src/vespa/searchlib/btree/btreeroot.cpp b/searchlib/src/vespa/searchlib/btree/btreeroot.cpp index cce157c0cbc..60c44f7973e 100644 --- a/searchlib/src/vespa/searchlib/btree/btreeroot.cpp +++ b/searchlib/src/vespa/searchlib/btree/btreeroot.cpp @@ -1,15 +1,14 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "btreeroot.h" - -#include -LOG_SETUP(".searchlib.btree.btreeroot"); - #include "btreenodeallocator.h" #include "btreeiterator.hpp" #include "btreeroot.hpp" #include "btreenode.hpp" +#include +LOG_SETUP(".searchlib.btree.btreeroot"); + namespace search::btree { template class BTreeRootT; diff --git a/searchlib/src/vespa/searchlib/btree/btreestore.cpp b/searchlib/src/vespa/searchlib/btree/btreestore.cpp index f183d4d4f15..4467aad15d5 100644 --- a/searchlib/src/vespa/searchlib/btree/btreestore.cpp +++ b/searchlib/src/vespa/searchlib/btree/btreestore.cpp @@ -1,11 +1,12 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "btreestore.h" -#include -LOG_SETUP(".searchlib.btree.breestore"); #include "btreestore.hpp" #include "btreeiterator.hpp" +#include +LOG_SETUP(".searchlib.btree.breestore"); + namespace search::btree { template class BTreeStore -#include -LOG_SETUP(".searchlib.memoryindex.dictionary"); - #include #include #include @@ -17,6 +14,9 @@ LOG_SETUP(".searchlib.memoryindex.dictionary"); #include #include +#include +LOG_SETUP(".searchlib.memoryindex.dictionary"); + namespace search { diff --git a/searchlib/src/vespa/searchlib/memoryindex/memoryfieldindex.cpp b/searchlib/src/vespa/searchlib/memoryindex/memoryfieldindex.cpp index f201d4c2572..733adef97da 100644 --- a/searchlib/src/vespa/searchlib/memoryindex/memoryfieldindex.cpp +++ b/searchlib/src/vespa/searchlib/memoryindex/memoryfieldindex.cpp @@ -1,14 +1,9 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "memoryfieldindex.h" -#include -LOG_SETUP(".searchlib.memoryindex.memory_field_index"); - #include #include - #include - #include #include #include @@ -19,6 +14,9 @@ LOG_SETUP(".searchlib.memoryindex.memory_field_index"); #include "ordereddocumentinserter.h" #include +#include +LOG_SETUP(".searchlib.memoryindex.memory_field_index"); + namespace search { using index::DocIdAndFeatures; diff --git a/searchlib/src/vespa/searchlib/memoryindex/ordereddocumentinserter.cpp b/searchlib/src/vespa/searchlib/memoryindex/ordereddocumentinserter.cpp index 3df56dd095c..b1e365c7fd7 100644 --- a/searchlib/src/vespa/searchlib/memoryindex/ordereddocumentinserter.cpp +++ b/searchlib/src/vespa/searchlib/memoryindex/ordereddocumentinserter.cpp @@ -1,8 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "ordereddocumentinserter.h" -#include -LOG_SETUP(".searchlib.memoryindex.ordered_document_inserter"); #include "i_document_insert_listener.h" #include @@ -18,6 +16,9 @@ LOG_SETUP(".searchlib.memoryindex.ordered_document_inserter"); #include #include +#include +LOG_SETUP(".searchlib.memoryindex.ordered_document_inserter"); + namespace search::memoryindex { namespace { diff --git a/searchlib/src/vespa/searchlib/memoryindex/postingiterator.cpp b/searchlib/src/vespa/searchlib/memoryindex/postingiterator.cpp index f23fc380bbe..1f55aa466b1 100644 --- a/searchlib/src/vespa/searchlib/memoryindex/postingiterator.cpp +++ b/searchlib/src/vespa/searchlib/memoryindex/postingiterator.cpp @@ -1,15 +1,15 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "postingiterator.h" -#include -LOG_SETUP(".searchlib.memoryindex.postingiterator"); - #include #include #include #include #include +#include +LOG_SETUP(".searchlib.memoryindex.postingiterator"); + namespace search { namespace memoryindex { diff --git a/searchlib/src/vespa/searchlib/predicate/document_features_store.cpp b/searchlib/src/vespa/searchlib/predicate/document_features_store.cpp index c22d05c5e32..b5d1d9ec1e0 100644 --- a/searchlib/src/vespa/searchlib/predicate/document_features_store.cpp +++ b/searchlib/src/vespa/searchlib/predicate/document_features_store.cpp @@ -1,8 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "document_features_store.h" -#include -LOG_SETUP(".searchlib.predicate.document_features_store"); #include "predicate_index.h" #include "predicate_range_expander.h" #include "predicate_tree_annotator.h" @@ -12,6 +10,9 @@ LOG_SETUP(".searchlib.predicate.document_features_store"); #include #include +#include +LOG_SETUP(".searchlib.predicate.document_features_store"); + using search::btree::BTreeNoLeafData; using search::datastore::EntryRef; using vespalib::DataBuffer; diff --git a/searchlib/src/vespa/searchlib/predicate/predicate_index.cpp b/searchlib/src/vespa/searchlib/predicate/predicate_index.cpp index b83b66f997f..1336f35628e 100644 --- a/searchlib/src/vespa/searchlib/predicate/predicate_index.cpp +++ b/searchlib/src/vespa/searchlib/predicate/predicate_index.cpp @@ -1,10 +1,11 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.predicate.predicate_index"); #include "predicate_index.h" #include "predicate_hash.h" +#include +LOG_SETUP(".searchlib.predicate.predicate_index"); + using search::datastore::EntryRef; using vespalib::DataBuffer; using std::vector; diff --git a/searchlib/src/vespa/searchlib/predicate/predicate_interval_store.cpp b/searchlib/src/vespa/searchlib/predicate/predicate_interval_store.cpp index f84cbac2b95..a0a8c690b5a 100644 --- a/searchlib/src/vespa/searchlib/predicate/predicate_interval_store.cpp +++ b/searchlib/src/vespa/searchlib/predicate/predicate_interval_store.cpp @@ -1,14 +1,14 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "predicate_interval_store.h" -#include -LOG_SETUP(".searchlib.predicate.predicate_interval_store"); - #include "predicate_index.h" #include #include #include +#include +LOG_SETUP(".searchlib.predicate.predicate_interval_store"); + using search::datastore::BufferState; using search::datastore::EntryRef; using std::vector; diff --git a/searchlib/src/vespa/searchlib/predicate/predicate_tree_annotator.cpp b/searchlib/src/vespa/searchlib/predicate/predicate_tree_annotator.cpp index 7dc5cca376e..3b395f155b8 100644 --- a/searchlib/src/vespa/searchlib/predicate/predicate_tree_annotator.cpp +++ b/searchlib/src/vespa/searchlib/predicate/predicate_tree_annotator.cpp @@ -1,13 +1,14 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "predicate_tree_annotator.h" -#include -LOG_SETUP(".searchlib.predicate.predicate_tree_annotator"); #include "predicate_index.h" #include "predicate_range_expander.h" #include "predicate_tree_analyzer.h" #include +#include +LOG_SETUP(".searchlib.predicate.predicate_tree_annotator"); + using document::Predicate; using std::map; using std::string; diff --git a/searchlib/src/vespa/searchlib/predicate/predicate_zero_constraint_posting_list.cpp b/searchlib/src/vespa/searchlib/predicate/predicate_zero_constraint_posting_list.cpp index 7a57699a494..757bc489179 100644 --- a/searchlib/src/vespa/searchlib/predicate/predicate_zero_constraint_posting_list.cpp +++ b/searchlib/src/vespa/searchlib/predicate/predicate_zero_constraint_posting_list.cpp @@ -1,10 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#include "predicate_zero_constraint_posting_list.h" + #include LOG_SETUP(".searchlib.predicate.predicate_zero_constraint_posting_list"); -#include "predicate_zero_constraint_posting_list.h" - namespace search { namespace predicate { diff --git a/searchlib/src/vespa/searchlib/predicate/simple_index.cpp b/searchlib/src/vespa/searchlib/predicate/simple_index.cpp index 0e562681a3e..1ca8fd259c6 100644 --- a/searchlib/src/vespa/searchlib/predicate/simple_index.cpp +++ b/searchlib/src/vespa/searchlib/predicate/simple_index.cpp @@ -1,10 +1,11 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.predicate.simple_index"); #include "simple_index.hpp" #include +#include +LOG_SETUP(".searchlib.predicate.simple_index"); + namespace search { namespace predicate { namespace simpleindex { diff --git a/searchlib/src/vespa/searchlib/queryeval/predicate_blueprint.cpp b/searchlib/src/vespa/searchlib/queryeval/predicate_blueprint.cpp index 7bac71552c6..3e6228053ab 100644 --- a/searchlib/src/vespa/searchlib/queryeval/predicate_blueprint.cpp +++ b/searchlib/src/vespa/searchlib/queryeval/predicate_blueprint.cpp @@ -1,7 +1,5 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include -LOG_SETUP(".searchlib.predicate.predicate_blueprint"); #include "predicate_blueprint.h" #include #include @@ -9,7 +7,8 @@ LOG_SETUP(".searchlib.predicate.predicate_blueprint"); #include #include #include - +#include +LOG_SETUP(".searchlib.predicate.predicate_blueprint"); #include using search::query::PredicateQuery; diff --git a/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp b/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp index 02a9a339807..bbd50e468e2 100644 --- a/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp +++ b/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp @@ -1,8 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "dense_tensor_attribute.h" -#include -LOG_SETUP(".searchlib.tensor.dense_tensor_attribute"); #include "dense_tensor_attribute_saver.h" #include "tensor_attribute.hpp" #include @@ -10,6 +8,9 @@ LOG_SETUP(".searchlib.tensor.dense_tensor_attribute"); #include #include +#include +LOG_SETUP(".searchlib.tensor.dense_tensor_attribute"); + using vespalib::eval::ValueType; using vespalib::tensor::MutableDenseTensorView; using vespalib::tensor::Tensor; diff --git a/searchlib/src/vespa/searchlib/test/fakedata/fakeegcompr64filterocc.cpp b/searchlib/src/vespa/searchlib/test/fakedata/fakeegcompr64filterocc.cpp index 10f7c7c5326..7eda569924c 100644 --- a/searchlib/src/vespa/searchlib/test/fakedata/fakeegcompr64filterocc.cpp +++ b/searchlib/src/vespa/searchlib/test/fakedata/fakeegcompr64filterocc.cpp @@ -4,6 +4,7 @@ #include "fpfactory.h" #include #include + #include LOG_SETUP(".searchlib.test.fake_eg_compr64_filter_occ"); diff --git a/searchlib/src/vespa/searchlib/test/fakedata/fakememtreeocc.cpp b/searchlib/src/vespa/searchlib/test/fakedata/fakememtreeocc.cpp index d6df63681ed..8bbcdf9d359 100644 --- a/searchlib/src/vespa/searchlib/test/fakedata/fakememtreeocc.cpp +++ b/searchlib/src/vespa/searchlib/test/fakedata/fakememtreeocc.cpp @@ -2,8 +2,6 @@ #include "fakememtreeocc.h" #include "fpfactory.h" -#include -LOG_SETUP(".fakememtreeocc"); #include #include #include @@ -13,6 +11,9 @@ LOG_SETUP(".fakememtreeocc"); #include #include +#include +LOG_SETUP(".fakememtreeocc"); + using search::fef::TermFieldMatchData; using search::fef::TermFieldMatchDataPosition; -- cgit v1.2.3