Permalink
Browse files

MB-7728: Add copyright headers to all files

This is something that our cpplint tool turns on and it makes
our product look a little bit more profesional. I have also
enabled the tool to begin checking for these headers so it will
start complaining if we add a new file without a copyright header.

Change-Id: Ie956fdf7027bf56d9665ee455acd3c109fcacc76
Reviewed-on: http://review.couchbase.org/24560
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Reviewed-by: Jin Lim <jin@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
  • Loading branch information...
1 parent 474e317 commit 66eb94d0a913ce6287ec2ec132d0195eaf2683a1 @mikewied mikewied committed with mikewied Jan 17, 2013
Showing with 1,595 additions and 66 deletions.
  1. +1 −1 Makefile.am
  2. +16 −0 configure.ac
  3. +16 −0 src/access_scanner.cc
  4. +16 −0 src/access_scanner.h
  5. +1 −1 src/atomic.cc
  6. +16 −0 src/atomic.h
  7. +16 −0 src/atomic/gcc_atomics.h
  8. +17 −1 src/atomic/libatomic.h
  9. +16 −1 src/backfill.cc
  10. +16 −0 src/backfill.h
  11. +16 −0 src/bgfetcher.cc
  12. +16 −0 src/bgfetcher.h
  13. +15 −0 src/blackhole-kvstore/blackhole.cc
  14. +16 −0 src/blackhole-kvstore/blackhole.h
  15. +17 −0 src/byteorder.c
  16. +16 −0 src/callbacks.h
  17. +16 −0 src/checkpoint.cc
  18. +16 −0 src/checkpoint.h
  19. +16 −0 src/checkpoint_remover.cc
  20. +16 −0 src/checkpoint_remover.h
  21. +17 −0 src/common.h
  22. +18 −1 src/config_static.h
  23. +17 −0 src/couch-kvstore/couch-fs-stats.cc
  24. +17 −0 src/couch-kvstore/couch-fs-stats.h
  25. +15 −0 src/couch-kvstore/couch-kvstore-dummy.cc
  26. +17 −0 src/couch-kvstore/couch-kvstore-dummy.h
  27. +15 −0 src/couch-kvstore/couch-kvstore.cc
  28. +17 −0 src/couch-kvstore/couch-kvstore.h
  29. +16 −0 src/couch-kvstore/couch-notifier.cc
  30. +16 −0 src/couch-kvstore/couch-notifier.h
  31. +15 −0 src/couch-kvstore/dirutils.cc
  32. +16 −0 src/couch-kvstore/dirutils.h
  33. +17 −0 src/crc32.h
  34. +1 −1 src/dispatcher.cc
  35. +16 −0 src/dispatcher.h
  36. +1 −1 src/ep.cc
  37. +2 −1 src/ep.h
  38. +1 −1 src/ep_engine.cc
  39. +16 −0 src/ep_engine.h
  40. +1 −1 src/ep_extension.cc
  41. +16 −0 src/ep_extension.h
  42. +1 −1 src/flusher.cc
  43. +16 −0 src/flusher.h
  44. +1 −1 src/gethrtime.c
  45. +17 −0 src/histo.h
  46. +15 −0 src/htresizer.cc
  47. +16 −0 src/htresizer.h
  48. +1 −1 src/item.cc
  49. +16 −0 src/item.h
  50. +15 −0 src/item_pager.cc
  51. +16 −0 src/item_pager.h
  52. +15 −0 src/kvstore.cc
  53. +16 −0 src/kvstore.h
  54. +16 −0 src/locks.h
  55. +1 −1 src/memory_tracker.cc
  56. +1 −1 src/memory_tracker.h
  57. +15 −0 src/mutation_log.cc
  58. +17 −0 src/mutation_log.h
  59. +15 −0 src/mutation_log_compactor.cc
  60. +16 −0 src/mutation_log_compactor.h
  61. +16 −0 src/mutex.h
  62. +2 −1 src/objectregistry.cc
  63. +2 −1 src/priority.cc
  64. +16 −0 src/priority.h
  65. +16 −0 src/queueditem.cc
  66. +16 −0 src/queueditem.h
  67. +17 −0 src/ringbuffer.h
  68. +16 −0 src/stats.h
  69. +15 −0 src/statsnap.cc
  70. +16 −0 src/statsnap.h
  71. +17 −0 src/statwriter.h
  72. +15 −0 src/stored-value.cc
  73. +16 −0 src/stored-value.h
  74. +17 −0 src/suite_stubs.c
  75. +17 −0 src/suite_stubs.h
  76. +16 −0 src/syncobject.h
  77. +1 −1 src/tapconnection.cc
  78. +16 −0 src/tapconnection.h
  79. +15 −0 src/tapconnmap.cc
  80. +16 −0 src/tapconnmap.h
  81. +15 −0 src/tapthrottle.cc
  82. +16 −0 src/tapthrottle.h
  83. +16 −1 src/testlogger.cc
  84. +15 −0 src/vbucket.cc
  85. +15 −0 src/vbucket.h
  86. +15 −0 src/vbucketmap.cc
  87. +16 −0 src/vbucketmap.h
  88. +1 −1 tests/ep_test_apis.cc
  89. +1 −1 tests/ep_test_apis.h
  90. +1 −1 tests/ep_testsuite.cc
  91. +17 −0 tests/ep_testsuite.h
  92. +17 −0 tests/module_tests/atomic_ptr_test.cc
  93. +17 −0 tests/module_tests/atomic_test.cc
  94. +15 −0 tests/module_tests/checkpoint_test.cc
  95. +15 −0 tests/module_tests/chunk_creation_test.cc
  96. +16 −0 tests/module_tests/dirutils_test.cc
  97. +17 −0 tests/module_tests/dispatcher_test.cc
  98. +17 −0 tests/module_tests/hash_table_test.cc
  99. +17 −0 tests/module_tests/histo_test.cc
  100. +15 −0 tests/module_tests/hrtime_test.cc
  101. +17 −0 tests/module_tests/json_test.cc
  102. +17 −0 tests/module_tests/misc_test.cc
  103. +15 −0 tests/module_tests/mutation_log_test.cc
  104. +17 −0 tests/module_tests/mutex_test.cc
  105. +15 −0 tests/module_tests/priority_test.cc
  106. +17 −0 tests/module_tests/ringbuffer_test.cc
  107. +17 −0 tests/module_tests/test_memory_tracker.cc
  108. +17 −0 tests/module_tests/threadtests.h
  109. +1 −1 tests/module_tests/timing_tests.cc
  110. +15 −0 tests/module_tests/vbucket_test.cc
  111. +62 −28 tools/gencode.cc
  112. +49 −15 tools/genconfig.cc
View
@@ -413,7 +413,7 @@ valgrind_engine_tests: ep.la ep_testsuite.la
cpplint:
python tools/cpplint.py --verbose=0 \
- --filter=-,+build,-build/namespaces \
+ --filter=-,+legal,+build,-build/namespaces \
src/*.cc src/*.h src/atomic/*.h \
src/blackhole-kvstore/*.cc src/blackhole-kvstore/*.h \
src/couch-kvstore/*.cc src/couch-kvstore/*.h \
View
@@ -327,6 +327,22 @@ AC_SEARCH_LIBS(socket, socket)
AC_SEARCH_LIBS(gethostbyname, nsl)
AH_TOP([
+/*
+ * Copyright 2010 Couchbase, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_CONFIG_H_
#define SRC_CONFIG_H_ 1
#ifdef _SYS_FEATURE_TESTS_H
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2012 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#include "config.h"
#include <iostream>
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2012 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_ACCESS_SCANNER_H_
#define SRC_ACCESS_SCANNER_H_ 1
View
@@ -1,6 +1,6 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
- * Copyright 2011 Couchbase, Inc.
+ * Copyright 2011 Couchbase, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2010 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_ATOMIC_H_
#define SRC_ATOMIC_H_ 1
View
@@ -1,4 +1,20 @@
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2010 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_ATOMIC_GCC_ATOMICS_H_
#define SRC_ATOMIC_GCC_ATOMICS_H_ 1
View
@@ -1,4 +1,20 @@
-/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2010 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_ATOMIC_LIBATOMIC_H_
#define SRC_ATOMIC_LIBATOMIC_H_ 1
View
@@ -1,4 +1,19 @@
-/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
#include "config.h"
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_BACKFILL_H_
#define SRC_BACKFILL_H_ 1
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2012 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#include "config.h"
#include <algorithm>
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2012 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_BGFETCHER_H_
#define SRC_BGFETCHER_H_ 1
@@ -1,4 +1,19 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
#include "config.h"
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_BLACKHOLE_KVSTORE_BLACKHOLE_H_
#define SRC_BLACKHOLE_KVSTORE_BLACKHOLE_H_ 1
View
@@ -1,3 +1,20 @@
+/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2010 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#include "config.h"
static uint64_t mc_swap64(uint64_t in) {
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2013 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_CALLBACKS_H_
#define SRC_CALLBACKS_H_ 1
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#include "config.h"
#include <string>
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_CHECKPOINT_H_
#define SRC_CHECKPOINT_H_ 1
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#include "config.h"
#include "checkpoint_remover.h"
View
@@ -1,4 +1,20 @@
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ * Copyright 2011 Couchbase, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#ifndef SRC_CHECKPOINT_REMOVER_H_
#define SRC_CHECKPOINT_REMOVER_H_ 1
Oops, something went wrong.

0 comments on commit 66eb94d

Please sign in to comment.