string-table: Introduce DECLARE_STRING_TABLE_LOOKUP() and friends
Let's introduce these for the following two reasons: - Using them makes sure the parameter names match between declaration and definition (if both use the corresponding macros). - They make sure developers can't forget the _const_ and _pure_ attributes for the declarations. This commit also includes some include sorting fixes
This commit is contained in:
committed by
Yu Watanabe
parent
daff8ea8bb
commit
aec52c1e6e
+14
-13
@@ -3,20 +3,21 @@
|
||||
|
||||
/* IWYU pragma: always_keep */
|
||||
|
||||
#include <errno.h> /* IWYU pragma: export */
|
||||
#include <inttypes.h> /* IWYU pragma: export */
|
||||
#include <limits.h> /* IWYU pragma: export */
|
||||
#include <paths.h> /* IWYU pragma: export */
|
||||
#include <stdarg.h> /* IWYU pragma: export */
|
||||
#include <stdbool.h> /* IWYU pragma: export */
|
||||
#include <stddef.h> /* IWYU pragma: export */
|
||||
#include <stdint.h> /* IWYU pragma: export */
|
||||
#include <sys/types.h> /* IWYU pragma: export */
|
||||
#include <uchar.h> /* IWYU pragma: export */
|
||||
#include <errno.h> /* IWYU pragma: export */
|
||||
#include <inttypes.h> /* IWYU pragma: export */
|
||||
#include <limits.h> /* IWYU pragma: export */
|
||||
#include <paths.h> /* IWYU pragma: export */
|
||||
#include <stdarg.h> /* IWYU pragma: export */
|
||||
#include <stdbool.h> /* IWYU pragma: export */
|
||||
#include <stddef.h> /* IWYU pragma: export */
|
||||
#include <stdint.h> /* IWYU pragma: export */
|
||||
#include <sys/types.h> /* IWYU pragma: export */
|
||||
#include <uchar.h> /* IWYU pragma: export */
|
||||
|
||||
#include "assert-util.h" /* IWYU pragma: export */
|
||||
#include "cleanup-util.h" /* IWYU pragma: export */
|
||||
#include "macro.h" /* IWYU pragma: export */
|
||||
#include "assert-util.h" /* IWYU pragma: export */
|
||||
#include "cleanup-util.h" /* IWYU pragma: export */
|
||||
#include "macro.h" /* IWYU pragma: export */
|
||||
#include "string-table-fundamental.h" /* IWYU pragma: export */
|
||||
|
||||
/* Generic types */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user