Loading...
Loading...
Compare original and translation side by side
#include#include.cpppython scripts/sort_includes.py <directory-path>python scripts/sort_includes.py <directory-path> --dry-run.cpppython scripts/sort_includes.py <directory-path>python scripts/sort_includes.py <directory-path> --dry-runfile.cppfile.h<>""file.cppfile.h<>""#ifdef#ifndef#if defined#ifdef#endif#elif#else#ifdef#ifndef#if defined#ifdef#endif#elif#else#include "common/rs_log.h"
#include "rs_trace.h"
#include <memory>
#ifdef RS_ENABLE_GPU
#include "feature/uifirst/rs_sub_thread_manager.h"
#include "feature/capture/rs_ui_capture_task_parallel.h"
#endif
#include "platform/common/rs_system_properties.h"#include "rs_trace.h" // 1. Corresponding header (longest path preferred)
#include <memory> // 2. System headers (alphabetical)
#include "common/rs_log.h" // 3. Local headers (alphabetical)
#ifdef RS_ENABLE_GPU
#include "feature/capture/rs_ui_capture_task_parallel.h"
#include "feature/uifirst/rs_sub_thread_manager.h"
#endif
#include "platform/common/rs_system_properties.h"#include "common/rs_log.h"
#include "rs_trace.h"
#include <memory>
#ifdef RS_ENABLE_GPU
#include "feature/uifirst/rs_sub_thread_manager.h"
#include "feature/capture/rs_ui_capture_task_parallel.h"
#endif
#include "platform/common/rs_system_properties.h"#include "rs_trace.h" // 1. 对应头文件(优先最长路径)
#include <memory> // 2. 系统头文件(按字母顺序)
#include "common/rs_log.h" // 3. 本地头文件(按字母顺序)
#ifdef RS_ENABLE_GPU
#include "feature/capture/rs_ui_capture_task_parallel.h"
#include "feature/uifirst/rs_sub_thread_manager.h"
#endif
#include "platform/common/rs_system_properties.h""file.h""path/to/file.h"// comment#elif#else#ifdef"file.h""path/to/file.h"// comment#ifdef#elif#elsescripts/sort_includes.pyextract_includes_with_ifdef()sort_includes_with_ifdef()format_ifdef_block()scripts/sort_includes.pyextract_includes_with_ifdef()sort_includes_with_ifdef()format_ifdef_block()#ifdefgit diffgit diff <file.cpp> | grep "^[-+]" | grep "include"#ifdefgit diffgit diff <file.cpp> | grep "^[-+]" | grep "include"