☰
  • 首页
  • 规则分类
  • 项目介绍
search
•••

在 #include 指令中,'、"、\、//、/* 出现在定界符 < > 之间,或 '、\、//、/* 出现在定界符 " 之间

C++-Undefined-Behavior-5
目录 › next › previous

示例:

#include <"foo">      // Undefined behavior in C++03
#include "foo//bar"   // Undefined behavior in C++03

程序在这种情况下的行为在 C++03 中是未定义的,在 C++11 中是由实现定义的。

依据

ISO/IEC 14882:2003 2.8(2)-undefined ISO/IEC 14882:2011 2.9(2)-implementation

规则

ID_nonStandardCharInHeaderName ID_forbidBackslashInHeaderName
Copyright©2024 360 Security Technology Inc., Licensed under the Apache-2.0 license.