aboutsummaryrefslogtreecommitdiff
path: root/icing/index/main
diff options
context:
space:
mode:
Diffstat (limited to 'icing/index/main')
-rw-r--r--icing/index/main/flash-index-storage.cc4
-rw-r--r--icing/index/main/flash-index-storage_test.cc2
-rw-r--r--icing/index/main/index-block.cc3
-rw-r--r--icing/index/main/index-block.h2
-rw-r--r--icing/index/main/posting-list-free.h2
-rw-r--r--icing/index/main/posting-list-used.h2
6 files changed, 7 insertions, 8 deletions
diff --git a/icing/index/main/flash-index-storage.cc b/icing/index/main/flash-index-storage.cc
index f125b6d..3c52375 100644
--- a/icing/index/main/flash-index-storage.cc
+++ b/icing/index/main/flash-index-storage.cc
@@ -14,11 +14,11 @@
#include "icing/index/main/flash-index-storage.h"
-#include <errno.h>
-#include <inttypes.h>
#include <sys/types.h>
#include <algorithm>
+#include <cerrno>
+#include <cinttypes>
#include <cstdint>
#include <memory>
#include <unordered_set>
diff --git a/icing/index/main/flash-index-storage_test.cc b/icing/index/main/flash-index-storage_test.cc
index 7e15524..25fcaad 100644
--- a/icing/index/main/flash-index-storage_test.cc
+++ b/icing/index/main/flash-index-storage_test.cc
@@ -14,10 +14,10 @@
#include "icing/index/main/flash-index-storage.h"
-#include <stdlib.h>
#include <unistd.h>
#include <algorithm>
+#include <cstdlib>
#include <limits>
#include <utility>
#include <vector>
diff --git a/icing/index/main/index-block.cc b/icing/index/main/index-block.cc
index 4590d06..c6ab345 100644
--- a/icing/index/main/index-block.cc
+++ b/icing/index/main/index-block.cc
@@ -14,9 +14,8 @@
#include "icing/index/main/index-block.h"
-#include <inttypes.h>
-
#include <algorithm>
+#include <cinttypes>
#include <limits>
#include "icing/text_classifier/lib3/utils/base/statusor.h"
diff --git a/icing/index/main/index-block.h b/icing/index/main/index-block.h
index edf9a79..5d75a2a 100644
--- a/icing/index/main/index-block.h
+++ b/icing/index/main/index-block.h
@@ -15,10 +15,10 @@
#ifndef ICING_INDEX_MAIN_INDEX_BLOCK_H_
#define ICING_INDEX_MAIN_INDEX_BLOCK_H_
-#include <string.h>
#include <sys/mman.h>
#include <algorithm>
+#include <cstring>
#include <limits>
#include <memory>
#include <string>
diff --git a/icing/index/main/posting-list-free.h b/icing/index/main/posting-list-free.h
index 4f06057..75b99d7 100644
--- a/icing/index/main/posting-list-free.h
+++ b/icing/index/main/posting-list-free.h
@@ -15,10 +15,10 @@
#ifndef ICING_INDEX_MAIN_POSTING_LIST_FREE_H_
#define ICING_INDEX_MAIN_POSTING_LIST_FREE_H_
-#include <string.h>
#include <sys/mman.h>
#include <cstdint>
+#include <cstring>
#include "icing/text_classifier/lib3/utils/base/statusor.h"
#include "icing/absl_ports/canonical_errors.h"
diff --git a/icing/index/main/posting-list-used.h b/icing/index/main/posting-list-used.h
index 1b2e24e..8944034 100644
--- a/icing/index/main/posting-list-used.h
+++ b/icing/index/main/posting-list-used.h
@@ -15,10 +15,10 @@
#ifndef ICING_INDEX_MAIN_POSTING_LIST_USED_H_
#define ICING_INDEX_MAIN_POSTING_LIST_USED_H_
-#include <string.h>
#include <sys/mman.h>
#include <algorithm>
+#include <cstring>
#include <vector>
#include "icing/text_classifier/lib3/utils/base/status.h"