Search
Duplicate
⚠️

Norminette V2 Error 모음

간단소개
팔만코딩경 컨트리뷰터
ContributorNotionAccount
주제 / 분류
Norminette
42seoul
Scrap
태그
9 more properties
norminette v2 기준입니다.
norminette error 명은 /header2 로 작성해주세요. x 는 /Emoji x 입니다.

wrong number of spaces in preprocessor indentation

#define, #include 작성 시 # 과 define 사이에 공백이 없어서 발생.
#ifndef GET_NEXT_LINE_H # define GET_NEXT_LINE_H # include <unistd.h> # include <stdlib.h> #endif
C
복사
주의할 점
아래 코드 처럼 #ifndef 안에 #ifndef 가 있으면, 해당 depth 만큼 #과 define 사이에 공백이 필요하다.
line 6은 # 과 define 사이에 공백이 2개.
1 #ifndef GET_NEXT_LINE_H 2 # define GET_NEXT_LINE_H 3 # include <unistd.h> 4 # include <stdlib.h> 5 # ifndef BUFFER_SIZE 6 # define BUFFER_SIZE 1 7 # endif
C
복사

has double inclusion protection but not with the good define name

헤더 파일 include guard 의 이름과 파일의 이름이 일치하지 않아 발생.

42 header must be followed by one empty line

42header 와 코드 첫 라인 사이 공백이 없어 발생.
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* CoolFunSexy.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: 42 <42@student.42seoul.kr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/05/14 14:15:51 by 42 #+# #+# */ /* Updated: 2021/05/17 20:20:30 by 42 ### ########.fr */ /* */ /* ************************************************************************** */ <- 공백 -> #include "CoolFunSexy.h"
C
복사