일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- vscode
- C++
- cppCheck
- html report
- 객체 vs 인스턴스
- 개발툴
- 인스턴스
- extension
- 객체
- object vs instance
- plugin
- vscode 추천
- static analysis
- Today
- Total
킹드래곤 짹짹 개발노트
객체(Object)와 인스턴스(Instance) 두 단어는 참으로 헷갈린다. 프로그래밍 책이나 글을 읽다보면 두 단어를 혼용하며 쓴다.너무 헷갈린다. 처음 프로그래밍을 접하는 사람은 더욱 혼동스러울 것이다.객체와 인스턴스의 차이를 나름 정리해본다. 먼저 아래와 같이 생각해보자."객체와 인스턴스는 같은 말이야"이제 헷갈리지 않을 것이다. -_-;; 그럼 이제는 객체와 인스턴스의 차이에 대해서 정리해보자.클래스에 의해서 만들어진 객체를 인스턴스라고 한다. 1Person programer = new Person();cs 이렇게 만들어진 programer는 객체이다. 그리고 programer라는 객체는 Person의 인스턴스이다.인스턴스라는 말은 특정 객체(programer)가 어떤 클래스(Person)의 객체..
이전 글에서는 cppcheck 설치, 빌드 방법을 알아보았습니다.이번 글에서는 cppcheck-htmlreport 의 사용 방법에 대해서 정리합니다.cppcheck html report 사용법cppcheck-htmlreport 는 cppcheck 가 설치되면 함께 설치됩니다.설치 위치 : /usr/bin/cppcheck-htmlreport Github 에서 다운로드한 소스에도 포함되어 있습니다.소스 위치 : /cppcheck dir/htmlreport/cppcheck-htmlreport cppcheck-htmlreport 는 cppcheck의 결과를 보기좋게 HTML 문서로 만들어줍니다.cppcheck 의 결과는 sa_result.xml 과 같이 xml 문서로 출력됩니다.xml 문서를 텍스트 뷰어로 보기..
cppcheck 설치설치 환경 : Ubuntu 16.04 amd64$ sudo apt-get install cppcheck현재 cppcheck 1.72 버전이 설치됩니다.cppcheck 빌드Github : https://github.com/danmar/cppcheck2018-10-15 에 최신 버전인 1.85 가 release 되었습니다.최신 버전을 사용하기 위해서는 cppcheck를 직접 빌드하여 사용해야 합니다. 빌드 환경 : Ubuntu 16.04 amd641. release 버전의 소스를 다운로드 한다.https://github.com/danmar/cppcheck/releases소스를 빌드할 것이기 때문에 source code (tar.gz) 을 다운로드 합니다. 2. 다운로드 받은 위치로 이동한..
Visual Studio Code 의 Extension 검색 사이트https://marketplace.visualstudio.com/ #1 Bookmarks https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks북마크 지정으로 소스 편집 시에 참으로 유용합니다.대부분의 source editor 에서 꼭 사용하는 plugin 입니다. #2 Material Theme https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-themeColor theme 로 사용하는 plugin 입니다.저는 Material Theme Darker 를 사용합니다.눈이 편하..