jbenden / vscode-c-cpp-flylint

A VS Code extension for advanced, modern, static analysis of C/C++ that supports a number of back-end analyzer programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected warning in hpp file.

upizpp opened this issue · comments

commented

As far as I know, files with the extension of hpp should also belong to the type of Header file, rather than source code files with the extension of cpp.
Therefore, I think using '# pragma once' in HPP files is allowed, but this extension gave me a warning.

#pragma once in main file [-Wpragma-once-outside-header]