Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.18 KB

File metadata and controls

25 lines (18 loc) · 1.18 KB

C++03 Coverage Report

Overview

C++03 was a minor revision of the C++98 standard, primarily focused on bug fixes and technical corrections. From a lexical analysis and syntax highlighting perspective, it introduces no new keywords beyond those already present in C++98.

This report documents the verification of code2html's support for C++03 specific syntax patterns.

Verification Summary

The following features were tested and confirmed to be correctly highlighted using the existing C++98 parser implementation.

1. Value Initialization

C++03 introduced "value-initialization" syntax, particularly relevant for new expressions.

  • Example: int* p = new int();
  • Result: Correctly highlights new and int while treating () as delimiters.

2. std::vector Contiguous Storage

While a library feature, C++03 formalized that std::vector elements must be stored contiguously.

  • Example: std::vector<int> v; int* ptr = &v[0];
  • Result: Correctly handles template brackets and pointer arithmetic syntax.

Coverage Status: Complete

The current code2html implementation provides 100% coverage for C++03 keywords and syntax patterns.


Created on 2025-12-22