Как сделать так, чтобы cpplint не сообщал <optional>как неправильный заказ? - PullRequest
1 голос
/ 23 апреля 2020

header.hpp:

#pragma once

#include <path/to/file.h>

#include <algorithm>
#include <chrono>
#include <memory>
#include <optional>
#include <string>
#include <vector>

Когда я запускаю cpplint.py, я получаю Found C system header after C++ system header. Should be: helpers.h, c system, c++ system, other. [build/include_order] [4], указывая на <optional>.

Можно ли предотвратить это cpplint.py, не отключая build/include_order?

Примечание: <optional> - это c ++ 17, который не поддерживается cpplint afaik ,

Вы можете скачать мою версию cpplint здесь: https://raw.githubusercontent.com/google/styleguide/305ac87/cpplint/cpplint.py

Вопрос отправлен на GitHub Cpplint: https://github.com/cpplint/cpplint/issues/138

...