From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id ED17B385842D for ; Mon, 7 Feb 2022 23:35:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ED17B385842D Received: by mail-wr1-x430.google.com with SMTP id f17so27619213wrx.1 for ; Mon, 07 Feb 2022 15:35:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DpDJVf5BWk4KPFCrchgq18bbyKxwpom8tOG5hTOGWBM=; b=ruJOOf0fiR6fzBKWkNl1v2mgO31m4Rntl2Vq6ujosV3IGogDb8jh/9Eba7IVkIuuVB cQyOHvebPXGY+0kPNXZxJaERqIDCWSYH/O1Q4j1Q+BSOzmQs3rh8XQ+ly8cBXLw9jAFl 4QW6dnUCzr7WnPvlhbKwHdvBbTTECutAT3VMIowmMX35q1x16ratLGUoY/7cKpo8fqNw lXi1AIwaDL0Df13ruA2e5SzICEBaVzTAT9jmfI9VlwM+aGeku0yz+bE4E2lZhNmEfdNF eTrtduWNAkJ0kzyADcrGcx2F5BjLqUGEzarJFfGiVVcuAlrhJp5AvsKW1+NxD8ywSh0a OOuQ== X-Gm-Message-State: AOAM530ajExar4OXl5UjiJquxsxCOby2LLkeETzqRW5TPK+M/AWvWcPg iWyEkXLkVUN/5YtqETN+jTqZNwMcQZqtDHX0Zl4= X-Google-Smtp-Source: ABdhPJyMpXMgY7WUdRkVKxfDK5dMP1fD6ej05cQ5u8havgI0IadO1Wb4Ofc2qn6cUWLWdXaENLlin8Z56HddDNsNU0w= X-Received: by 2002:a05:6000:11c2:: with SMTP id i2mr1300829wrx.152.1644276948778; Mon, 07 Feb 2022 15:35:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Mon, 7 Feb 2022 23:35:37 +0000 Message-ID: Subject: Re: C++ version for GCC development To: Abdullah Siddiqui Cc: gcc-help X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2022 23:35:51 -0000 On Mon, 7 Feb 2022 at 23:04, Abdullah Siddiqui wrote: > Hello Jonathan. > > Thank you for the quick response. > > I got 14% from the following GitHub page: > > https://github.com/gcc-mirror/gcc > > Am I not looking at the correct source for the GCC source code? > That's an unofficial mirror that's nothing to do with the GCC project, but it does have a copy of the right sources. Those numbers are wrong though. It counts several .h and .C files as C when they are C++. It's a rough estimate based on simple heuristics done automatically by GitHub. The true number is higher. It also looks like they haven't updated those numbers since April last year, so it will wrongly count all .c files as C even the ones which contain C++ instead. A huge number of files were renamed from .c to .cc recently, because they contain C++ and so had a misleading .c extension. That doesn't seem to be accounted for in those numbers.