You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma once
#ifndef HEADER_ID_H
#defineHEADER_ID_H// (1)
clang-format inserts indent in (1) after the hash sign
owenca
added
invalid
Resolved as invalid, i.e. not a bug
and removed
incomplete
Issue not complete (e.g. missing a reproducer, build arguments, etc.)
labels
Jul 7, 2024
#pragma once
#ifndef HEADER_ID_H
#defineHEADER_ID_H// (1)
clang-format inserts indent in (1) after the hash sign
Doesn't the pragma make the header guard redundant and vice versa? Anyway, clang-format checks for header guards only at the beginning of the input as it's supposed to.
When IndentPPDirectives is set to AfterHash, placing
#pragma once
at the beginning of the include file make all#include
directives indented.The text was updated successfully, but these errors were encountered: