30 lines
868 B
Plaintext
30 lines
868 B
Plaintext
== Why is this an issue?
|
|
|
|
Microsoft's MSVC has a search strategy which differs from other compilers when resolving quoted include directives ``++#include "file.h"++``. Relying on such a strategy is not portable and may lead to compilation failure when trying to build with a different compiler.
|
|
|
|
|
|
This rule raises an issue whenever the file specified in a ``++#include++`` directive can only be found using the MSVC search strategy.
|
|
|
|
|
|
== Resources
|
|
|
|
* Microsoft Learn - https://learn.microsoft.com/en-us/cpp/preprocessor/hash-include-directive-c-cpp[``++#include++`` directive (C/{cpp})]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Change that "#include" so that it doesn't rely on MSVC search strategy.
|
|
|
|
|
|
=== Highlighting
|
|
|
|
the path in the "#include" directive
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|